fix: Optimized Slots setting not updating on children event types (#24208)
* fixed : Optimized Slots setting not updating on children event types * updated tests to expect showOptimizedSlots sync * fixed : Optimized Slots setting not updating on children event types --------- Co-authored-by: Devanshu Sharma <[email protected]> Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
2 files changed
+1
-6
No files matched your search
@@ -126,7 +126,6 @@ describe("handleChildrenEventTypes", () => {
|
|||||||
autoTranslateDescriptionEnabled,
|
autoTranslateDescriptionEnabled,
|
||||||
includeNoShowInRRCalculation,
|
includeNoShowInRRCalculation,
|
||||||
instantMeetingScheduleId,
|
instantMeetingScheduleId,
|
||||||
showOptimizedSlots,
|
|
||||||
...evType
|
...evType
|
||||||
} = mockFindFirstEventType({
|
} = mockFindFirstEventType({
|
||||||
id: 123,
|
id: 123,
|
||||||
@@ -189,7 +188,6 @@ describe("handleChildrenEventTypes", () => {
|
|||||||
assignRRMembersUsingSegment,
|
assignRRMembersUsingSegment,
|
||||||
includeNoShowInRRCalculation,
|
includeNoShowInRRCalculation,
|
||||||
instantMeetingScheduleId,
|
instantMeetingScheduleId,
|
||||||
showOptimizedSlots,
|
|
||||||
...evType
|
...evType
|
||||||
} = mockFindFirstEventType({
|
} = mockFindFirstEventType({
|
||||||
metadata: { managedEventConfig: {} },
|
metadata: { managedEventConfig: {} },
|
||||||
@@ -300,7 +298,6 @@ describe("handleChildrenEventTypes", () => {
|
|||||||
includeNoShowInRRCalculation,
|
includeNoShowInRRCalculation,
|
||||||
instantMeetingScheduleId,
|
instantMeetingScheduleId,
|
||||||
assignRRMembersUsingSegment,
|
assignRRMembersUsingSegment,
|
||||||
showOptimizedSlots,
|
|
||||||
...evType
|
...evType
|
||||||
} = mockFindFirstEventType({
|
} = mockFindFirstEventType({
|
||||||
id: 123,
|
id: 123,
|
||||||
@@ -366,7 +363,6 @@ describe("handleChildrenEventTypes", () => {
|
|||||||
assignRRMembersUsingSegment,
|
assignRRMembersUsingSegment,
|
||||||
rrSegmentQueryValue,
|
rrSegmentQueryValue,
|
||||||
useEventLevelSelectedCalendars,
|
useEventLevelSelectedCalendars,
|
||||||
showOptimizedSlots,
|
|
||||||
...evType
|
...evType
|
||||||
} = mockFindFirstEventType({
|
} = mockFindFirstEventType({
|
||||||
metadata: { managedEventConfig: {} },
|
metadata: { managedEventConfig: {} },
|
||||||
@@ -432,7 +428,6 @@ describe("handleChildrenEventTypes", () => {
|
|||||||
includeNoShowInRRCalculation,
|
includeNoShowInRRCalculation,
|
||||||
instantMeetingScheduleId,
|
instantMeetingScheduleId,
|
||||||
assignRRMembersUsingSegment,
|
assignRRMembersUsingSegment,
|
||||||
showOptimizedSlots,
|
|
||||||
...evType
|
...evType
|
||||||
} = mockFindFirstEventType({
|
} = mockFindFirstEventType({
|
||||||
metadata: { managedEventConfig: {} },
|
metadata: { managedEventConfig: {} },
|
||||||
@@ -456,7 +451,6 @@ describe("handleChildrenEventTypes", () => {
|
|||||||
requiresBookerEmailVerification: false,
|
requiresBookerEmailVerification: false,
|
||||||
lockTimeZoneToggleOnBookingPage: false,
|
lockTimeZoneToggleOnBookingPage: false,
|
||||||
useEventTypeDestinationCalendarEmail: false,
|
useEventTypeDestinationCalendarEmail: false,
|
||||||
showOptimizedSlots: false,
|
|
||||||
workflows: [],
|
workflows: [],
|
||||||
parentId: 1,
|
parentId: 1,
|
||||||
locations: [],
|
locations: [],
|
||||||
|
|||||||
@@ -681,6 +681,7 @@ export const allManagedEventTypeProps: { [k in keyof Omit<Prisma.EventTypeSelect
|
|||||||
periodCountCalendarDays: true,
|
periodCountCalendarDays: true,
|
||||||
bookingLimits: true,
|
bookingLimits: true,
|
||||||
onlyShowFirstAvailableSlot: true,
|
onlyShowFirstAvailableSlot: true,
|
||||||
|
showOptimizedSlots: true,
|
||||||
slotInterval: true,
|
slotInterval: true,
|
||||||
scheduleId: true,
|
scheduleId: true,
|
||||||
workflows: true,
|
workflows: true,
|
||||||
|
|||||||
Reference in new issue
Block a user