The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
remove deploy time risk guard
Steven Tey68cd2cbe5898
diff --git a/apps/web/app/(ee)/api/cron/payouts/process/route.ts b/apps/web/app/(ee)/api/cron/payouts/process/route.tsindex ee8ef5fc56..f52d0d6dd2 100644--- a/apps/web/app/(ee)/api/cron/payouts/process/route.ts+++ b/apps/web/app/(ee)/api/cron/payouts/process/route.ts@@ -11,34 +11,15 @@ import { splitPayouts } from "./split-payouts";export const dynamic = "force-dynamic";export const maxDuration = 600; // This function can run for a maximum of 10 minutes-const processPayoutsCronSchema = z.preprocess(- (raw: unknown) => {- if (!raw || typeof raw !== "object" || raw === null) {- return raw;- }- const d = raw as Record<string, unknown>;- if (- typeof d.selectedPayoutId === "string" &&- d.selectedPayoutId &&- (!Array.isArray(d.selectedPayoutIds) || d.selectedPayoutIds.length === 0)- ) {- return {- ...d,- selectedPayoutIds: [d.selectedPayoutId],- };- }- return raw;- },- z.object({- workspaceId: z.string(),- userId: z.string(),- invoiceId: z.string(),- paymentMethodId: z.string(),- cutoffPeriod: CUTOFF_PERIOD_ENUM,- selectedPayoutIds: z.array(z.string()).optional(),- excludedPayoutIds: z.array(z.string()).optional(),- }),-);+const processPayoutsCronSchema = z.object({+ workspaceId: z.string(),+ userId: z.string(),+ invoiceId: z.string(),+ paymentMethodId: z.string(),+ cutoffPeriod: CUTOFF_PERIOD_ENUM,+ selectedPayoutIds: z.array(z.string()).optional(),+ excludedPayoutIds: z.array(z.string()).optional(),+});// POST /api/cron/payouts/process// This route is used to process payouts for a given invoice