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.

Update create-payout.ts

Steven Tey8d4eae9695e3
diff --git a/apps/web/app/api/cron/payouts/create-payout.ts b/apps/web/app/api/cron/payouts/create-payout.ts
index 76daa06514..08dce0bb59 100644
--- a/apps/web/app/api/cron/payouts/create-payout.ts
+++ b/apps/web/app/api/cron/payouts/create-payout.ts
@@ -41,12 +41,6 @@ export const createPayout = async ({
return;
}
- // get the earliest sale date
- // const periodStart = sales.reduce(
- // (min, sale) => (sale.createdAt < min ? sale.createdAt : min),
- // sales[0].createdAt,
- // );
-
// earliest commission date
const periodStart = commissions[0].createdAt;