Skip to content

Scheduling infrastructure for absolutely everyone.

Adds missing return after res

Syed Ali Shahbaz9a65c547dcab
diff --git a/pages/api/schedules/index.ts b/pages/api/schedules/index.ts
index 3b8abc776fe..86faad4181f 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);