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 K43df3b70a5c5
diff --git a/apps/web/lib/tolt/update-stripe-customers.ts b/apps/web/lib/tolt/update-stripe-customers.ts
index 354652fcaa..44b415e86c 100644
--- a/apps/web/lib/tolt/update-stripe-customers.ts
+++ b/apps/web/lib/tolt/update-stripe-customers.ts
@@ -87,15 +87,11 @@ export async function updateStripeCustomers({
startingAfter = customers[customers.length - 1].id;
}
- if (hasMore) {
- await toltImporter.queue({
- programId,
- action: "update-stripe-customers",
- startingAfter,
- });
-
- return;
- }
+ await toltImporter.queue({
+ programId,
+ action: hasMore ? "update-stripe-customers" : "cleanup-partners",
+ ...(hasMore && { startingAfter }),
+ });
}
async function searchStripeCustomer({