Adds missing return after res

pull/9078/head
Syed Ali Shahbaz 2022-10-07 13:24:55 +05:30 committed by GitHub
parent cc01e47d58
commit 9a65c547dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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);