The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
edit comment
Steven Tey97c23396e0f9
diff --git a/apps/web/app/api/cron/usage/utils.ts b/apps/web/app/api/cron/usage/utils.tsindex cbaa42e202..e7ec1e1c44 100644--- a/apps/web/app/api/cron/usage/utils.ts+++ b/apps/web/app/api/cron/usage/utils.ts@@ -17,8 +17,9 @@ const limit = 100;export const updateUsage = async () => {const workspaces = await prisma.project.findMany({where: {+ // Check only workspaces that haven't been checked in the last 12 hoursusageLastChecked: {- lt: new Date(new Date().getTime() - 12 * 60 * 60 * 1000), // 12 hours ago+ lt: new Date(new Date().getTime() - 12 * 60 * 60 * 1000),},},include: {