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 verify-qstash.ts

Steven Tey576f40cc30a0
diff --git a/apps/web/lib/cron/verify-qstash.ts b/apps/web/lib/cron/verify-qstash.ts
index 834e0e7d98..eea74dc605 100644
--- a/apps/web/lib/cron/verify-qstash.ts
+++ b/apps/web/lib/cron/verify-qstash.ts
@@ -9,7 +9,7 @@ const receiver = new Receiver({
export const verifyQstashSignature = async (
req: Request,
- body: any,
+ body?: any,
bodyType: "json" | "text" = "json",
) => {
body = body || (bodyType === "json" ? await req.json() : await req.text());