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.

chore: Add verifyQstashSignature

Kiran K6fb3decfdfb7
diff --git a/apps/web/app/api/cron/emails/cancellation-feedback/route.ts b/apps/web/app/api/cron/emails/cancellation-feedback/route.ts
index f6dbb89d88..f03ada7f4f 100644
--- a/apps/web/app/api/cron/emails/cancellation-feedback/route.ts
+++ b/apps/web/app/api/cron/emails/cancellation-feedback/route.ts
@@ -1,4 +1,5 @@
import { handleAndReturnErrorResponse } from "@/lib/api/errors";
+import { verifyQstashSignature } from "@/lib/cron/verify-qstash";
import { sendEmail } from "emails";
export const dynamic = "force-dynamic";
@@ -16,7 +17,8 @@ const cancellationReasonMap = {
export async function POST(req: Request) {
try {
const body = await req.json();
- // await verifyQstashSignature(req, body);
+ await verifyQstashSignature(req, body);
+
const { owners, reason } = body as {
owners: {
name: string | null;