The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix heuristic for last 30 days
Steven Teyed57caf80ccd
diff --git a/lib/cron/usage.tsx b/lib/cron/usage.tsxindex 20af23cc7e..75893afb85 100644--- a/lib/cron/usage.tsx+++ b/lib/cron/usage.tsx@@ -100,12 +100,8 @@ export const updateUsage = async () => {id: project.id,},createdAt: {- // larger than billingCycleStart (but a month ago)- gte: new Date(- new Date().setDate(- project.billingCycleStart || new Date().getDate() - 30,- ),- ),+ // in the last 30 days+ gte: new Date(new Date().setDate(new Date().getDate() - 30)),},},}),