hotfix dynamic issue (#3864)

This commit is contained in:
Syed Ali Shahbaz
2022-08-16 17:43:01 -06:00
committed by zomars
parent 7e0dbee2ca
commit 73e38384e2
+1 -1
View File
@@ -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,