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 importer

Steven Tey59d69f9b40df
diff --git a/apps/web/app/api/cron/import/bitly/utils.ts b/apps/web/app/api/cron/import/bitly/utils.ts
index 26586a5be5..39033329cd 100644
--- a/apps/web/app/api/cron/import/bitly/utils.ts
+++ b/apps/web/app/api/cron/import/bitly/utils.ts
@@ -1,3 +1,4 @@
+import { bulkCreateLinks } from "@/lib/api/links";
import { qstash } from "@/lib/cron";
import prisma from "@/lib/prisma";
import { redis } from "@/lib/upstash";
@@ -99,7 +100,7 @@ export const importLinksFromBitly = async ({
);
// bulk create links
- // await bulkCreateLinks({ links: importedLinks });
+ await bulkCreateLinks({ links: importedLinks });
count += importedLinks.length;