feat: Restrict same email to create more than 'n' active bookings at… (#21745)
* feat - Restrict same email to create more than 'n' active bookings at a time * updated checkbookerbookinglimit function * type fix * minor change * import fix * minor fixes * back to null on disable * back * type check * managed edge cases * chore: name changes * name changes * fix * minor change * changed name * use default value for maxactivebookingsperbooker, and some minor changes * disabling bookerbooking limit for recurring event * disabling bookerbooking limit for recurring event * type fix * ui fix and backend eventtype update check * removed unused code * minor changes * update validation * chore * Do not check booking limits if rescheduling * minor fix * Refactor eventType update errors * Typo fix --------- Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
1 parent
ddf5717992
commit
630065ca89
16 files changed
+143
-2
No files matched your search
@@ -104,6 +104,7 @@ const commons = {
|
||||
requiresConfirmationForFreeEmail: false,
|
||||
requiresBookerEmailVerification: false,
|
||||
bookingLimits: null,
|
||||
maxActiveBookingsPerBooker: null,
|
||||
durationLimits: null,
|
||||
hidden: false,
|
||||
userId: 0,
|
||||
|
||||
@@ -530,6 +530,7 @@ export class EventTypeRepository {
|
||||
bookingLimits: true,
|
||||
onlyShowFirstAvailableSlot: true,
|
||||
durationLimits: true,
|
||||
maxActiveBookingsPerBooker: true,
|
||||
assignAllTeamMembers: true,
|
||||
allowReschedulingPastBookings: true,
|
||||
hideOrganizerEmail: true,
|
||||
|
||||
@@ -133,6 +133,7 @@ export const buildEventType = (eventType?: Partial<EventType>): EventType => {
|
||||
schedulingType: null,
|
||||
scheduleId: null,
|
||||
bookingLimits: null,
|
||||
maxActiveBookingsPerBooker: null,
|
||||
durationLimits: null,
|
||||
assignAllTeamMembers: false,
|
||||
rescheduleWithSameRoundRobinHost: false,
|
||||
|
||||
Reference in new issue
Block a user