arreglo active reservation

This commit is contained in:
David Arranz 2022-06-07 11:07:57 +02:00
parent 7923896dab
commit acd492da8a

View File

@ -52,7 +52,10 @@ async function activeReservation(reservation) {
throw new Error("activeReservation: reservation should be an object");
const eventToDiscountAssistants = reservation.overflow_reservationId
? await eventService._getEvent(reservation.overflow_reservationId)
: reservation.Event;
: (reservation.Event ? reservation.Event : reservation.event);
console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>1', reservation.Event);
console.log(' >>>>>>>>>>>>>>>>>>>>>>>>>>2', reservation.event);
//En el caso de ya estar publicada no hacemos nada se devuelve tal cual
if (reservation.state === 'publish')