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 update-stripe-customers.ts

Kiran K66499aaf0ee6
diff --git a/apps/web/lib/tolt/update-stripe-customers.ts b/apps/web/lib/tolt/update-stripe-customers.ts
index b8af2cbc9e..cd5258a16e 100644
--- a/apps/web/lib/tolt/update-stripe-customers.ts
+++ b/apps/web/lib/tolt/update-stripe-customers.ts
@@ -84,12 +84,10 @@ export async function updateStripeCustomers(payload: ToltImportPayload) {
startingAfter = customers[customers.length - 1].id;
}
- delete payload?.startingAfter;
-
await toltImporter.queue({
...payload,
+ startingAfter: hasMore ? startingAfter : undefined,
action: hasMore ? "update-stripe-customers" : "cleanup-partners",
- ...(hasMore && { startingAfter }),
});
}