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

Tim Wilsone52e8e1ef0d3
diff --git a/apps/web/app/(ee)/api/cron/links/delete-old-links/route.ts b/apps/web/app/(ee)/api/cron/links/delete-old-links/route.ts
index e7ed0392a3..60946531a2 100644
--- a/apps/web/app/(ee)/api/cron/links/delete-old-links/route.ts
+++ b/apps/web/app/(ee)/api/cron/links/delete-old-links/route.ts
@@ -1,4 +1,5 @@
import { handleAndReturnErrorResponse } from "@/lib/api/errors";
+import { verifyVercelSignature } from "@/lib/cron/verify-vercel";
import { recordLinkTB, transformLinkTB } from "@/lib/tinybird";
import { prisma } from "@dub/prisma";
import { pluralize } from "@dub/utils";
@@ -13,7 +14,7 @@ const MAX_DOMAIN_BATCHES = 1_000;
// GET /api/cron/links/delete-old-links
export async function GET(req: Request) {
try {
- // await verifyVercelSignature(req);
+ await verifyVercelSignature(req);
let processedBatches = 0;
let cursor: string | null = null;