fix: dont default to cal-video in case locations is not provided (#21256)

This commit is contained in:
Somay Chauhan
2025-05-13 09:57:16 +00:00
committed by GitHub
parent 08b501625d
commit 0e6f365dc2
@@ -104,13 +104,6 @@ export class InputEventTypesService_2024_06_14 {
}
transformInputCreateEventType(inputEventType: CreateEventTypeInput_2024_06_14) {
const defaultLocations: CreateEventTypeInput_2024_06_14["locations"] = [
{
type: "integration",
integration: "cal-video",
},
];
const {
lengthInMinutes,
lengthInMinutesOptions,
@@ -130,10 +123,11 @@ export class InputEventTypesService_2024_06_14 {
} = inputEventType;
const confirmationPolicyTransformed = this.transformInputConfirmationPolicy(confirmationPolicy);
const locationsTransformed = locations?.length ? this.transformInputLocations(locations) : undefined;
const eventType = {
...rest,
length: lengthInMinutes,
locations: this.transformInputLocations(locations || defaultLocations),
locations: locationsTransformed,
bookingFields: this.transformInputBookingFields(bookingFields),
bookingLimits: bookingLimitsCount ? this.transformInputIntervalLimits(bookingLimitsCount) : undefined,
durationLimits: bookingLimitsDuration