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 cron URL

Kiran K8985d7fa5cf7
diff --git a/apps/web/lib/actions/partners/create-discount.ts b/apps/web/lib/actions/partners/create-discount.ts
index 0318055116..b90785893f 100644
--- a/apps/web/lib/actions/partners/create-discount.ts
+++ b/apps/web/lib/actions/partners/create-discount.ts
@@ -119,7 +119,7 @@ export const createDiscountAction = authActionClient
discount.couponCodeTrackingEnabledAt &&
qstash.publishJSON({
- url: `${APP_DOMAIN_WITH_NGROK}/api/cron/discounts/enqueue-promotion-code-create-jobs`,
+ url: `${APP_DOMAIN_WITH_NGROK}/api/cron/discounts/enqueue-coupon-code-create-jobs`,
body: {
discountId: discount.id,
},
diff --git a/apps/web/lib/actions/partners/update-discount.ts b/apps/web/lib/actions/partners/update-discount.ts
index f78b6959a4..032cbe75d6 100644
--- a/apps/web/lib/actions/partners/update-discount.ts
+++ b/apps/web/lib/actions/partners/update-discount.ts
@@ -63,7 +63,7 @@ export const updateDiscountAction = authActionClient
trackingEnabled &&
qstash.publishJSON({
- url: `${APP_DOMAIN_WITH_NGROK}/api/cron/discounts/enqueue-promotion-code-create-jobs`,
+ url: `${APP_DOMAIN_WITH_NGROK}/api/cron/discounts/enqueue-coupon-code-create-jobs`,
body: {
discountId: discount.id,
},