diff --git a/pages/api/schedules/[id].ts b/pages/api/schedules/[id].ts index 31182fabda..59c78ea12b 100644 --- a/pages/api/schedules/[id].ts +++ b/pages/api/schedules/[id].ts @@ -23,7 +23,7 @@ export async function scheduleById( res.status(400).json({ message: "Bad request" }); return; } - + const safeQuery = schemaQueryIdParseInt.safeParse(query); if (safeBody.data.userId && !isAdmin) { res.status(401).json({ message: "Unauthorized" });