From 0e6f365dc2ccba8294b05161bb17da9b5139009e Mon Sep 17 00:00:00 2001 From: Somay Chauhan Date: Tue, 13 May 2025 15:27:16 +0530 Subject: [PATCH] fix: dont default to cal-video in case locations is not provided (#21256) --- .../services/input-event-types.service.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/apps/api/v2/src/ee/event-types/event-types_2024_06_14/services/input-event-types.service.ts b/apps/api/v2/src/ee/event-types/event-types_2024_06_14/services/input-event-types.service.ts index 14b90a6879..a932f6b3eb 100644 --- a/apps/api/v2/src/ee/event-types/event-types_2024_06_14/services/input-event-types.service.ts +++ b/apps/api/v2/src/ee/event-types/event-types_2024_06_14/services/input-event-types.service.ts @@ -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