The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix eligible route bug
Steven Teyce6c970b40c4
diff --git a/apps/web/app/(ee)/api/cron/payouts/process/process-payouts.ts b/apps/web/app/(ee)/api/cron/payouts/process/process-payouts.tsindex 3364a37da2..0b3666c174 100644--- a/apps/web/app/(ee)/api/cron/payouts/process/process-payouts.ts+++ b/apps/web/app/(ee)/api/cron/payouts/process/process-payouts.ts@@ -62,7 +62,7 @@ export async function processPayouts({where: {...(selectedPayoutId? { id: selectedPayoutId }- : excludedPayoutIds+ : excludedPayoutIds && excludedPayoutIds.length > 0? { id: { notIn: excludedPayoutIds } }: {}),programId: program.id,diff --git a/apps/web/app/(ee)/api/cron/payouts/process/split-payouts.ts b/apps/web/app/(ee)/api/cron/payouts/process/split-payouts.tsindex bbf797951f..2b13be853d 100644--- a/apps/web/app/(ee)/api/cron/payouts/process/split-payouts.ts+++ b/apps/web/app/(ee)/api/cron/payouts/process/split-payouts.ts@@ -22,7 +22,7 @@ export async function splitPayouts({where: {...(selectedPayoutId? { id: selectedPayoutId }- : excludedPayoutIds+ : excludedPayoutIds && excludedPayoutIds.length > 0? { id: { notIn: excludedPayoutIds } }: {}),programId: program.id,diff --git a/apps/web/ui/partners/confirm-payouts-sheet.tsx b/apps/web/ui/partners/confirm-payouts-sheet.tsxindex 5aa327211a..f6cfc6b7de 100644--- a/apps/web/ui/partners/confirm-payouts-sheet.tsx+++ b/apps/web/ui/partners/confirm-payouts-sheet.tsx@@ -83,7 +83,7 @@ function ConfirmPayoutsSheetContent() {const { queryParams, searchParamsObj } = useRouterStuff();- const selectedPayoutId = searchParamsObj.selectedPayoutId;+ const selectedPayoutId = searchParamsObj.selectedPayoutId || undefined;const {data: eligiblePayouts,@@ -93,7 +93,7 @@ function ConfirmPayoutsSheetContent() {`/api/programs/${defaultProgramId}/payouts/eligible?${new URLSearchParams({workspaceId,cutoffPeriod,- selectedPayoutId,+ ...(selectedPayoutId && { selectedPayoutId }),} as Record<string, any>).toString()}`,fetcher,);