arreglo active reservation
This commit is contained in:
parent
7923896dab
commit
acd492da8a
@ -52,7 +52,10 @@ async function activeReservation(reservation) {
|
|||||||
throw new Error("activeReservation: reservation should be an object");
|
throw new Error("activeReservation: reservation should be an object");
|
||||||
const eventToDiscountAssistants = reservation.overflow_reservationId
|
const eventToDiscountAssistants = reservation.overflow_reservationId
|
||||||
? await eventService._getEvent(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
|
//En el caso de ya estar publicada no hacemos nada se devuelve tal cual
|
||||||
if (reservation.state === 'publish')
|
if (reservation.state === 'publish')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user