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.

fix bitly import

Steven Tey5bb232077a24
diff --git a/apps/web/app/api/cron/import/bitly/utils.ts b/apps/web/app/api/cron/import/bitly/utils.ts
index 98b8a53bff..e1c7c463e8 100644
--- a/apps/web/app/api/cron/import/bitly/utils.ts
+++ b/apps/web/app/api/cron/import/bitly/utils.ts
@@ -57,7 +57,7 @@ export const importLinksFromBitly = async ({
return [];
}
const createdAt = new Date(created_at).toISOString();
- const tagIds = tagsToId ? tags.map((tag) => tagsToId[tag]) : [];
+ const tagIds = tagsToId ? tags.map((tag: string) => tagsToId[tag]) : [];
const linkDetails = {
projectId,
userId,
@@ -97,7 +97,7 @@ export const importLinksFromBitly = async ({
);
// bulk create links
- await bulkCreateLinks(importedLinks);
+ await bulkCreateLinks({ links: importedLinks });
count += importedLinks.length;