Skip to content

Scheduling infrastructure for absolutely everyone.

Pass customReplyTo as a managed event type prop (#20909)

Joe Au-Yeungc0e123a9174b
diff --git a/apps/web/test/lib/handleChildrenEventTypes.test.ts b/apps/web/test/lib/handleChildrenEventTypes.test.ts
index 5efc20fc699..281a37d8dbf 100644
--- a/apps/web/test/lib/handleChildrenEventTypes.test.ts
+++ b/apps/web/test/lib/handleChildrenEventTypes.test.ts
@@ -142,7 +142,7 @@ describe("handleChildrenEventTypes", () => {
durationLimits: undefined,
recurringEvent: undefined,
eventTypeColor: undefined,
- customReplyToEmail: undefined,
+ customReplyToEmail: null,
userId: 4,
rrSegmentQueryValue: undefined,
assignRRMembersUsingSegment: false,
@@ -193,7 +193,7 @@ describe("handleChildrenEventTypes", () => {
...rest,
assignRRMembersUsingSegment: undefined,
useEventLevelSelectedCalendars: undefined,
- customReplyToEmail: undefined,
+ customReplyToEmail: null,
rrSegmentQueryValue: undefined,
locations: [],
scheduleId: null,
@@ -301,7 +301,7 @@ describe("handleChildrenEventTypes", () => {
durationLimits: undefined,
recurringEvent: undefined,
eventTypeColor: undefined,
- customReplyToEmail: undefined,
+ customReplyToEmail: null,
instantMeetingScheduleId: undefined,
lockTimeZoneToggleOnBookingPage: false,
requiresBookerEmailVerification: false,
@@ -357,7 +357,7 @@ describe("handleChildrenEventTypes", () => {
assignRRMembersUsingSegment: undefined,
useEventLevelSelectedCalendars: undefined,
rrSegmentQueryValue: undefined,
- customReplyToEmail: undefined,
+ customReplyToEmail: null,
locations: [],
hashedLink: {
deleteMany: {},
@@ -448,7 +448,7 @@ describe("handleChildrenEventTypes", () => {
durationLimits: undefined,
recurringEvent: undefined,
eventTypeColor: undefined,
- customReplyToEmail: undefined,
+ customReplyToEmail: null,
instantMeetingScheduleId: undefined,
locations: [],
lockTimeZoneToggleOnBookingPage: false,
@@ -475,7 +475,7 @@ describe("handleChildrenEventTypes", () => {
locations: [],
assignRRMembersUsingSegment: undefined,
useEventLevelSelectedCalendars: undefined,
- customReplyToEmail: undefined,
+ customReplyToEmail: null,
rrSegmentQueryValue: undefined,
lockTimeZoneToggleOnBookingPage: false,
requiresBookerEmailVerification: false,
diff --git a/packages/prisma/zod-utils.ts b/packages/prisma/zod-utils.ts
index cc98dc04044..faeca3b1ee3 100644
--- a/packages/prisma/zod-utils.ts
+++ b/packages/prisma/zod-utils.ts
@@ -667,6 +667,7 @@ export const allManagedEventTypeProps: { [k in keyof Omit<Prisma.EventTypeSelect
allowReschedulingPastBookings: true,
rescheduleWithSameRoundRobinHost: true,
maxLeadThreshold: true,
+ customReplyToEmail: true,
};
// All properties that are defined as unlocked based on all managed props