Adds missing return after res
parent
cc01e47d58
commit
9a65c547dc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue