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 params

Steven Teye172614a7d70
diff --git a/apps/web/app/(ee)/api/cron/workflows/[workflowId]/route.ts b/apps/web/app/(ee)/api/cron/workflows/[workflowId]/route.ts
index 0575a0fada..dc143bcb1b 100644
--- a/apps/web/app/(ee)/api/cron/workflows/[workflowId]/route.ts
+++ b/apps/web/app/(ee)/api/cron/workflows/[workflowId]/route.ts
@@ -8,15 +8,12 @@ import { logAndRespond } from "../../utils";
export const dynamic = "force-dynamic";
-interface RequestParams {
- params: {
- workflowId: string;
- };
-}
-
// POST /api/cron/workflows/[workflowId] - Execute a scheduled workflow
-export async function POST(req: Request, requestParams: RequestParams) {
- const { workflowId } = requestParams.params;
+export async function POST(
+ req: Request,
+ { params }: { params: Promise<{ workflowId: string }> },
+) {
+ const { workflowId } = await params;
try {
const rawBody = await req.text();