Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

revert welcome-user change

Steven Tey3a2bcc5f7a3c
diff --git a/apps/web/app/(ee)/api/cron/user-welcome-flow/route.ts b/apps/web/app/(ee)/api/cron/welcome-user/route.ts
similarity index 100%
rename from apps/web/app/(ee)/api/cron/user-welcome-flow/route.ts
rename to apps/web/app/(ee)/api/cron/welcome-user/route.ts
diff --git a/apps/web/lib/auth/options.ts b/apps/web/lib/auth/options.ts
index c6c789281e..815ddd3dbd 100644
--- a/apps/web/lib/auth/options.ts
+++ b/apps/web/lib/auth/options.ts
@@ -532,7 +532,7 @@ export const authOptions: NextAuthOptions = {
trackLead(user),
// trigger welcome workflow 15 minutes after the user signed up
qstash.publishJSON({
- url: `${APP_DOMAIN_WITH_NGROK}/api/cron/user-welcome-flow`,
+ url: `${APP_DOMAIN_WITH_NGROK}/api/cron/welcome-user`,
delay: 15 * 60,
body: { userId: user.id },
}),