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 import-customers.ts

Kiran Ka71d5d7ad0c4
diff --git a/apps/web/lib/tolt/import-customers.ts b/apps/web/lib/tolt/import-customers.ts
index b52b8ae1db..7c48b4b2d7 100644
--- a/apps/web/lib/tolt/import-customers.ts
+++ b/apps/web/lib/tolt/import-customers.ts
@@ -104,12 +104,10 @@ export async function importCustomers(payload: ToltImportPayload) {
startingAfter = customers[customers.length - 1].id;
}
- delete payload?.startingAfter;
-
await toltImporter.queue({
...payload,
+ startingAfter: hasMore ? startingAfter : undefined,
action: hasMore ? "import-customers" : "import-commissions",
- ...(hasMore && { startingAfter }),
});
}