Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(api): send first-view email for anonymous viewers
Richie McIlroycf495ee204f4
diff --git a/apps/web/app/api/analytics/track/route.ts b/apps/web/app/api/analytics/track/route.tsindex 7adc6c7ca..d1e5b8987 100644--- a/apps/web/app/api/analytics/track/route.ts+++ b/apps/web/app/api/analytics/track/route.ts@@ -147,12 +147,19 @@ export async function POST(request: NextRequest) {yield* Effect.forkDaemon(Effect.tryPromise(() =>- createAnonymousViewNotification({- videoId: body.videoId,- sessionId,- anonName,- location,- }),+ Promise.all([+ createAnonymousViewNotification({+ videoId: body.videoId,+ sessionId,+ anonName,+ location,+ }),+ sendFirstViewEmail({+ videoId: body.videoId,+ viewerName: anonName,+ isAnonymous: true,+ }),+ ]),).pipe(Effect.catchAll((error) => {console.error(