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.

Fix waitUntil call in /api/analytics/dashboard

Kiran K2789bb7d9dc0
diff --git a/apps/web/app/api/analytics/dashboard/route.ts b/apps/web/app/api/analytics/dashboard/route.ts
index dd25f23a8e..a5984041b3 100644
--- a/apps/web/app/api/analytics/dashboard/route.ts
+++ b/apps/web/app/api/analytics/dashboard/route.ts
@@ -163,7 +163,7 @@ export const GET = async (req: Request) => {
console.log(
`[Analytics Dashboard] Caching response for ${JSON.stringify(parsedParams, null, 2)}`,
);
- waitUntil(await redis.set(cacheKey, response, { ex: 60 }));
+ waitUntil(redis.set(cacheKey, response, { ex: 60 }));
return NextResponse.json(response);
} catch (error) {