Skip to content

Commit 0e6f365

Browse files
authored
fix: dont default to cal-video in case locations is not provided (calcom#21256)
1 parent 08b5016 commit 0e6f365

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

apps/api/v2/src/ee/event-types/event-types_2024_06_14/services/input-event-types.service.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)