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 confirm-payouts.ts

Kiran K676fd194acee
diff --git a/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts b/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts
index 9ad2df1fe8..64ab5de182 100644
--- a/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts
+++ b/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts
@@ -95,6 +95,10 @@ export async function confirmPayouts({
throw new Error("Failed to calculate payout fee.");
}
+ console.info(
+ `Using payout fee of ${payoutFee} for payment method ${paymentMethod.type}`,
+ );
+
const totalFee = amount * payoutFee;
const total = amount + totalFee;
@@ -183,6 +187,7 @@ export async function confirmPayouts({
payouts.filter((payout) => payout.partner.email),
100,
);
+
for (const payoutChunk of payoutChunks) {
await resend.batch.send(
payoutChunk.map((payout) => ({