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-partner-payout.ts

Steven Tey52026a05862a
diff --git a/apps/web/lib/actions/partners/create-partner-payout.ts b/apps/web/lib/actions/partners/create-partner-payout.ts
index bd17873610..0c43967e37 100644
--- a/apps/web/lib/actions/partners/create-partner-payout.ts
+++ b/apps/web/lib/actions/partners/create-partner-payout.ts
@@ -58,17 +58,17 @@ export const createPartnerPayoutAction = authActionClient
}),
]);
- // await Promise.all([
- // prisma.payout.update({
- // where: { id: payoutId },
- // data: { dotsTransferId: transfer.id, status: "completed" },
- // }),
+ await Promise.all([
+ prisma.payout.update({
+ where: { id: payoutId },
+ data: { dotsTransferId: transfer.id, status: "completed" },
+ }),
- // prisma.sale.updateMany({
- // where: { payoutId },
- // data: { status: "paid" },
- // }),
- // ]);
+ prisma.sale.updateMany({
+ where: { payoutId },
+ data: { status: "paid" },
+ }),
+ ]);
waitUntil(
(async () => {