From b38f78bbad73e793a7070eaa030b6d969a91434b Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Sun, 24 Apr 2022 23:57:17 +0200 Subject: [PATCH] fix: remove withValidSchedule from get/patch/delete shared endpoint --- pages/api/schedules/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);