From 73e38384e23e8bb685ded6d1b0e3068671baebce Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com> Date: Wed, 17 Aug 2022 03:37:44 +0530 Subject: [PATCH] hotfix dynamic issue (#3864) --- 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 63e5a5428f..627b579c50 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,