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

Kiran Kfe6155598282
diff --git a/apps/web/lib/api/links/bulk-create-links.ts b/apps/web/lib/api/links/bulk-create-links.ts
index c4ffffb95e..d6bc9ac760 100644
--- a/apps/web/lib/api/links/bulk-create-links.ts
+++ b/apps/web/lib/api/links/bulk-create-links.ts
@@ -228,8 +228,10 @@ export async function bulkCreateLinks({
programEnrollment: {
select: {
discount: {
- select: {
- couponCodeTrackingEnabledAt: true,
+ where: {
+ couponCodeTrackingEnabledAt: {
+ not: null,
+ },
},
},
},
@@ -237,7 +239,7 @@ export async function bulkCreateLinks({
},
});
- Promise.allSettled([
+ await Promise.allSettled([
propagateBulkLinkChanges({
links: createdLinksData,
skipRedisCache,