Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

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.ts
index 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.ts
index 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,