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-links.ts

Kiran K9a5426e1f431
diff --git a/apps/web/lib/tolt/import-links.ts b/apps/web/lib/tolt/import-links.ts
index 535b2ca68b..4fa4d28721 100644
--- a/apps/web/lib/tolt/import-links.ts
+++ b/apps/web/lib/tolt/import-links.ts
@@ -81,12 +81,10 @@ export async function importLinks(payload: ToltImportPayload) {
startingAfter = links[links.length - 1].id;
}
- delete payload?.startingAfter;
-
await toltImporter.queue({
...payload,
+ startingAfter: hasMore ? startingAfter : undefined,
action: hasMore ? "import-links" : "import-customers",
- ...(hasMore && { startingAfter }),
});
}