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.

fixed LinksImported email for bitly

Steven Tey9c4c26575a18
diff --git a/app/api/cron/import/bitly/utils.ts b/app/api/cron/import/bitly/utils.ts
index 09c97c3170..53d6df5306 100644
--- a/app/api/cron/import/bitly/utils.ts
+++ b/app/api/cron/import/bitly/utils.ts
@@ -111,7 +111,15 @@ export const importLinksFromBitly = async ({
key: true,
createdAt: true,
},
+ where: {
+ domain: {
+ in: domains,
+ },
+ },
take: 5,
+ orderBy: {
+ createdAt: "desc",
+ },
},
},
});