The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
remove redundant code
Steven Tey48e3e89146bd
diff --git a/apps/web/app/(ee)/api/programs/[programId]/payouts/count/route.ts b/apps/web/app/(ee)/api/programs/[programId]/payouts/count/route.tsindex 75b94c435c..8e20ca78d8 100644--- a/apps/web/app/(ee)/api/programs/[programId]/payouts/count/route.ts+++ b/apps/web/app/(ee)/api/programs/[programId]/payouts/count/route.ts@@ -18,11 +18,6 @@ export const GET = withWorkspace(programId,});- const now = new Date();- const currentMonthStart = new Date(- Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), 1),- );-const where: Prisma.PayoutWhereInput = {programId,...(partnerId && { partnerId }),diff --git a/apps/web/app/(ee)/api/programs/[programId]/payouts/route.ts b/apps/web/app/(ee)/api/programs/[programId]/payouts/route.tsindex 716fe7132f..073e47a1a1 100644--- a/apps/web/app/(ee)/api/programs/[programId]/payouts/route.ts+++ b/apps/web/app/(ee)/api/programs/[programId]/payouts/route.ts@@ -30,11 +30,6 @@ export const GET = withWorkspace(pageSize,} = parsed;- const now = new Date();- const currentMonthStart = new Date(- Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), 1),- );-const payouts = await prisma.payout.findMany({where: {programId,