diff --git a/pages/api/schedules/index.ts b/pages/api/schedules/index.ts index bbdd1c8dbc..bd9a38a9ef 100644 --- a/pages/api/schedules/index.ts +++ b/pages/api/schedules/index.ts @@ -70,4 +70,4 @@ async function createOrlistAllSchedules( } else res.status(405).json({ message: `Method ${method} not allowed` }); } -export default withMiddleware("HTTP_GET_OR_POST")(withValidSchedule(createOrlistAllSchedules)); +export default withMiddleware("HTTP_GET_OR_POST")(createOrlistAllSchedules);