The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix periodEnd in cron/payouts
Steven Tey29551688748a
diff --git a/apps/web/app/(ee)/api/cron/payouts/create-payout.ts b/apps/web/app/(ee)/api/cron/payouts/create-payout.tsindex c8a9ab6111..9b2beee9b1 100644--- a/apps/web/app/(ee)/api/cron/payouts/create-payout.ts+++ b/apps/web/app/(ee)/api/cron/payouts/create-payout.ts@@ -166,6 +166,7 @@ export const createPayout = async ({},data: {amount: newPayoutAmount,+ periodEnd,},});});diff --git a/apps/web/app/(ee)/api/cron/payouts/route.ts b/apps/web/app/(ee)/api/cron/payouts/route.tsindex e185bcaa75..5044306654 100644--- a/apps/web/app/(ee)/api/cron/payouts/route.ts+++ b/apps/web/app/(ee)/api/cron/payouts/route.ts@@ -6,7 +6,8 @@ import { createPayout } from "./create-payout";export const dynamic = "force-dynamic";-// This route is used to calculate payouts for the commissions.+// This route is used to aggregate pending commissions+// that are past the program holding period into a single payout.// Runs once every hour (0 * * * *)// GET /api/cron/payoutsexport async function GET(req: Request) {