From 6da51eda88e22390aa5526fbfec74c4057df1a96 Mon Sep 17 00:00:00 2001 From: alishaz-polymath Date: Tue, 16 Aug 2022 15:24:56 +0530 Subject: [PATCH] hotfix dynamic issue --- apps/web/pages/api/book/event.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/pages/api/book/event.ts b/apps/web/pages/api/book/event.ts index 63e5a5428ff7b9..627b579c50981c 100644 --- a/apps/web/pages/api/book/event.ts +++ b/apps/web/pages/api/book/event.ts @@ -291,7 +291,7 @@ async function handler(req: NextApiRequest) { }) : eventType.users; const isDynamicAllowed = !users.some((user) => !user.allowDynamicBooking); - if (!isDynamicAllowed) { + if (!isDynamicAllowed && !eventTypeId) { throw new HttpError({ message: "Some of the users in this group do not allow dynamic booking", statusCode: 400,