hotfix dynamic issue (#3864)
parent
7e0dbee2ca
commit
73e38384e2
|
@ -291,7 +291,7 @@ async function handler(req: NextApiRequest) {
|
||||||
})
|
})
|
||||||
: eventType.users;
|
: eventType.users;
|
||||||
const isDynamicAllowed = !users.some((user) => !user.allowDynamicBooking);
|
const isDynamicAllowed = !users.some((user) => !user.allowDynamicBooking);
|
||||||
if (!isDynamicAllowed) {
|
if (!isDynamicAllowed && !eventTypeId) {
|
||||||
throw new HttpError({
|
throw new HttpError({
|
||||||
message: "Some of the users in this group do not allow dynamic booking",
|
message: "Some of the users in this group do not allow dynamic booking",
|
||||||
statusCode: 400,
|
statusCode: 400,
|
||||||
|
|
Loading…
Reference in New Issue