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 deduplication logic (#3485)

Kiran Kfc15ad2e61f0
diff --git a/apps/web/app/(ee)/api/cron/discount-codes/create/queue-batches/route.ts b/apps/web/app/(ee)/api/cron/discount-codes/create/queue-batches/route.ts
index 4b6f46290b..1f6c848853 100644
--- a/apps/web/app/(ee)/api/cron/discount-codes/create/queue-batches/route.ts
+++ b/apps/web/app/(ee)/api/cron/discount-codes/create/queue-batches/route.ts
@@ -105,7 +105,7 @@ export const POST = withCron(async ({ rawBody }) => {
links.map((link) => ({
queueName: "create-discount-code",
url: `${APP_DOMAIN_WITH_NGROK}/api/cron/discount-codes/create`,
- deduplicationId: `${discountId}-${link.id}-1`,
+ deduplicationId: `${discountId}-${link.id}`,
body: {
linkId: link.id,
},