Skip to content

Commit dcbdacf

Browse files
committed
fix: prevent tracking install stats for single installs
1 parent 066e27b commit dcbdacf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

supabase/functions/_backend/triggers/cron_email.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,9 @@ async function handleDeployInstallStats(
349349
window_hours: '24',
350350
}
351351

352-
await trackBentoEvent(c, email, metadata, 'bundle:install_stats_24h')
352+
if (installs > 1) {
353+
await trackBentoEvent(c, email, metadata, 'bundle:install_stats_24h')
354+
}
353355

354356
return c.json(BRES)
355357
}

0 commit comments

Comments
 (0)