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 route.ts

Kiran K8b1284a353b4
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 8bcac00734..c5327b6bb6 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
@@ -11,7 +11,8 @@ const inputSchema = z.object({
});
// POST /api/cron/discount-codes/create/queue-batches
-// Drain shim for in-flight QStash messages; new work uses publish-discount-codes-creation-job
+// Drain shim for in-flight QStash messages; new work uses publish-discount-codes-creation-job.
+// TODO: Remove this route after in-flight QStash messages to this URL have drained.
export const POST = withCron(async ({ rawBody }) => {
const payload = inputSchema.parse(JSON.parse(rawBody));
await publishDiscountCodesCreationJob.execute(payload);