From 8eaad0c1c6976f0954f0a7953799d65890e5f3f9 Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com> Date: Fri, 7 Oct 2022 13:34:02 +0530 Subject: [PATCH] fixed typo --- pages/api/schedules/[id].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/schedules/[id].ts b/pages/api/schedules/[id].ts index 4ef7a85b6d..384e1f37c3 100644 --- a/pages/api/schedules/[id].ts +++ b/pages/api/schedules/[id].ts @@ -18,7 +18,7 @@ export async function scheduleById( res.status(400).json({ message: body.message }); } - const safe = schemaScheduleBodyParams.safeParse(body); + const safe = schemaSingleScheduleBodyParams.safeParse(body); if (!safeBody.success) { res.status(400).json({ message: "Bad request" }); return;