The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
small fix
Kiran K0ebea2fd8fff
diff --git a/apps/web/lib/api/sales/payout.ts b/apps/web/lib/api/sales/payout.tsindex 446ff63be9..1bb2814252 100644--- a/apps/web/lib/api/sales/payout.ts+++ b/apps/web/lib/api/sales/payout.ts@@ -1,4 +1,5 @@import { prisma } from "@/lib/prisma";+import { subDays } from "date-fns";import { createId } from "../utils";// Payout are calcuated at the end of the month@@ -37,6 +38,9 @@ export const createPartnerPayouts = async ({programId,partnerId,payoutId: null,+ createdAt: {+ lte: subDays(new Date(), 30), // Referral commissions are held for 30 days before becoming available.+ },},select: {id: true,