The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update usage.tsx
Steven Teyec77fd6431b1
diff --git a/lib/cron/usage.tsx b/lib/cron/usage.tsxindex 0281b42073..d193b38da2 100644--- a/lib/cron/usage.tsx+++ b/lib/cron/usage.tsx@@ -33,9 +33,10 @@ export const updateUsage = async () => {},});- // Get all projects that have billingCycleStart today+ // Get all paid projects that have billingCycleStart todayconst billingReset = projects.filter(- ({ billingCycleStart }) => billingCycleStart === new Date().getDate(),+ ({ plan, billingCycleStart }) =>+ plan !== "free" && billingCycleStart === new Date().getDate(),);// Get all projects that have exceeded usage