diff --git a/pages/api/schedules/index.ts b/pages/api/schedules/index.ts index 3b8abc776f..86faad4181 100644 --- a/pages/api/schedules/index.ts +++ b/pages/api/schedules/index.ts @@ -18,6 +18,7 @@ async function createOrlistAllSchedules( body = safeParseJSON(body); if (!body.success) { res.status(400).json({ message: body.message }); + return; } const safe = schemaScheduleBodyParams.safeParse(body);