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 with-cron.ts

Kiran Kdb0cc16456c7
diff --git a/apps/web/lib/cron/with-cron.ts b/apps/web/lib/cron/with-cron.ts
index e17873ca57..f30970e14c 100644
--- a/apps/web/lib/cron/with-cron.ts
+++ b/apps/web/lib/cron/with-cron.ts
@@ -42,7 +42,7 @@ export const withCron = (handler: WithCronHandler) => {
}
// POST requests are typically from QStash
else if (req.method === "POST") {
- rawBody = await req.text();
+ rawBody = await clonedReq.text();
await verifyQstashSignature({ req, rawBody });
} else {
throw new Error(`Unsupported HTTP method: ${req.method}`);