diff --git a/modules/events/event.controller.js b/modules/events/event.controller.js index 43bd8c4..43eaee4 100644 --- a/modules/events/event.controller.js +++ b/modules/events/event.controller.js @@ -166,17 +166,17 @@ console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', inscription.reservationId); NewConfirmed = await eventInscriptionService._getCountInscriptionsWithReservation(EventOrReservationChangeId) marketingListId = (await eventReservationService._getReservaById(EventOrReservationChangeId)).marketing_list; } - else if (inscription.overflowEventId) { + else if (inscription.overflowEventId != null) { console.log('Tengo overflow>>>>>>>>>>>>>>>>>>', inscription.overflowEventId); NewConfirmed = await eventInscriptionService._getCountInscriptionsWithOverflowEventId(EventOrReservationChangeId); marketingListId = (await eventService._getEvent(EventOrReservationChangeId)).marketing_list; } - else if (inscription.eventId) { + else if (inscription.eventId != null) { NewConfirmed = await eventInscriptionService._getCountInscriptionsWithoutReservationAndOverflow(EventOrReservationChangeId); marketingListId = (await eventService._getEvent(EventOrReservationChangeId)).marketing_list; }