Adds missing return after res

This commit is contained in:
Syed Ali Shahbaz authored and GitHub committed 2022-10-07 13:24:55 +05:30
1 parent cc01e47d58
commit 9a65c547dc
1 file changed
+1
+1
View File
@@ -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);