The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
stash scripts
Steven Tey4859adb30570
diff --git a/apps/web/scripts/flodesk-create-webhook.ts b/apps/web/scripts/flodesk-create-webhook.tsnew file mode 100644index 0000000000..8ccb89c897--- /dev/null+++ b/apps/web/scripts/flodesk-create-webhook.ts@@ -0,0 +1,25 @@+import "dotenv-flow/config";++async function main() {+ const res = await fetch("https://api.flodesk.com/v1/webhooks", {+ method: "GET",+ headers: {+ "Content-Type": "application/json",+ Authorization: `Basic ${process.env.FLODESK_API_KEY}`,+ },+ // body: JSON.stringify({+ // name: "Unsubscribed Webhook",+ // post_url:+ // "https://app.dub.co/api/callback/flodesk?token=9155f7737cd484b668fc4d4ba0532eef",+ // events: ["subscriber.unsubscribed"],+ // }),+ // }).then((res) => ({+ // limit: res.headers.get("X-Fd-RateLimit-Limit"),+ // remaining: res.headers.get("X-Fd-RateLimit-Remaining"),+ // }));+ }).then((res) => res.json());++ console.log(JSON.stringify(res, null, 2));+}++main();diff --git a/apps/web/scripts/upload-users.ts b/apps/web/scripts/upload-users.tsindex 32d672c210..bb60ca8587 100644--- a/apps/web/scripts/upload-users.ts+++ b/apps/web/scripts/upload-users.ts@@ -17,7 +17,7 @@ async function main() {return;}- // subscribe top 95 users+ // upload top 95 usersawait Promise.all(users.slice(0, 95).map(({ email, name }) => {}));console.log(`Uploaded 95 users, ${users.length - 95} remaining`);