Skip to content

Commit 06be9bf

Browse files
committed
wrap missing API return with auth.verify()
1 parent 0887c8e commit 06be9bf

File tree

1 file changed

+1
-1
lines changed
  • app/api/v2/escape/menu/categories/[categoryId]

1 file changed

+1
-1
lines changed

app/api/v2/escape/menu/categories/[categoryId]/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export async function DELETE(
2020
let categoryId = Number(params.categoryId);
2121
// verify productId is an integer
2222
if (isNaN(categoryId) || !categoryId) {
23-
return NextResponse.json({error: "categoryId must be an integer"}, {status: 400});
23+
return auth.verify(NextResponse.json({error: "categoryId must be an integer"}, {status: 400}));
2424
}
2525

2626

0 commit comments

Comments
 (0)