Adds missing return after res
This commit is contained in:
1 parent
cc01e47d58
commit
9a65c547dc
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user