The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix usage cron
Steven Tey72bbfe69271d
diff --git a/apps/web/app/api/cron/usage/utils.ts b/apps/web/app/api/cron/usage/utils.tsindex 8dd2c8f952..cc63c0d0e8 100644--- a/apps/web/app/api/cron/usage/utils.ts+++ b/apps/web/app/api/cron/usage/utils.ts@@ -34,10 +34,14 @@ export const updateUsage = async () => {},sentEmails: true,},- orderBy: {- usageLastChecked: "asc",- createdAt: "asc",- },+ orderBy: [+ {+ usageLastChecked: "asc",+ },+ {+ createdAt: "asc",+ },+ ],take: limit,});