File tree Expand file tree Collapse file tree
apps/api/v2/src/ee/event-types/event-types_2024_06_14/services Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,13 +104,6 @@ export class InputEventTypesService_2024_06_14 {
104104 }
105105
106106 transformInputCreateEventType ( inputEventType : CreateEventTypeInput_2024_06_14 ) {
107- const defaultLocations : CreateEventTypeInput_2024_06_14 [ "locations" ] = [
108- {
109- type : "integration" ,
110- integration : "cal-video" ,
111- } ,
112- ] ;
113-
114107 const {
115108 lengthInMinutes,
116109 lengthInMinutesOptions,
@@ -130,10 +123,11 @@ export class InputEventTypesService_2024_06_14 {
130123 } = inputEventType ;
131124 const confirmationPolicyTransformed = this . transformInputConfirmationPolicy ( confirmationPolicy ) ;
132125
126+ const locationsTransformed = locations ?. length ? this . transformInputLocations ( locations ) : undefined ;
133127 const eventType = {
134128 ...rest ,
135129 length : lengthInMinutes ,
136- locations : this . transformInputLocations ( locations || defaultLocations ) ,
130+ locations : locationsTransformed ,
137131 bookingFields : this . transformInputBookingFields ( bookingFields ) ,
138132 bookingLimits : bookingLimitsCount ? this . transformInputIntervalLimits ( bookingLimitsCount ) : undefined ,
139133 durationLimits : bookingLimitsDuration
You can’t perform that action at this time.
0 commit comments