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.

Update usage.tsx

Steven Teyec77fd6431b1
diff --git a/lib/cron/usage.tsx b/lib/cron/usage.tsx
index 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 today
const billingReset = projects.filter(
- ({ billingCycleStart }) => billingCycleStart === new Date().getDate(),
+ ({ plan, billingCycleStart }) =>
+ plan !== "free" && billingCycleStart === new Date().getDate(),
);
// Get all projects that have exceeded usage