Adds missing return after res
parent
cc01e47d58
commit
9a65c547dc
|
@ -18,6 +18,7 @@ async function createOrlistAllSchedules(
|
||||||
body = safeParseJSON(body);
|
body = safeParseJSON(body);
|
||||||
if (!body.success) {
|
if (!body.success) {
|
||||||
res.status(400).json({ message: body.message });
|
res.status(400).json({ message: body.message });
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const safe = schemaScheduleBodyParams.safeParse(body);
|
const safe = schemaScheduleBodyParams.safeParse(body);
|
||||||
|
|
Loading…
Reference in New Issue