From 354adca8ef90c6d58f7cbf42f54901303ae5e48b Mon Sep 17 00:00:00 2001 From: david Date: Mon, 2 Sep 2019 17:02:00 +0200 Subject: [PATCH] a --- modules/events/event.controller.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/events/event.controller.js b/modules/events/event.controller.js index 137ebaa..dfbcfde 100644 --- a/modules/events/event.controller.js +++ b/modules/events/event.controller.js @@ -34,7 +34,7 @@ const extraControllers = { try { const result = await eventReservationService._getReservaByCode(eventId, registrationCode); - return handleResultResponse(!!result, null, params, res, (result === null) ? httpStatus.NOT_FOUND : httpStatus.OK); + return handleResultResponse(!!result, null, params, res, httpStatus.OK); } catch(error) { return handleErrorResponse(MODULE_NAME, 'checkReservationCode', error, res) } @@ -391,7 +391,10 @@ console.log('actualizo confirmados de la nueva reserva'); dataInscription.validated = false; //Actualizamos aforo de la lista de espera del evento y creamos inscripcion +console.log('evento de lista de espera que debo actulizar sus confirmados>>>>>>>>>>>>>>>>>>>>>', dataInscription.event.overflow_eventId); + console.log('cantidad>>>>>>>>>>>>>>>>>>>>>', dataInscription.inscriptionsWithoutReservationCount); if (await eventService._updateConfirmedEvent(dataInscription.event.overflow_eventId, dataInscription.inscriptionsWithoutReservationCount)) +console.log('voy a crearrrrrr la inscripcion'); dataInscription.inscription = await eventInscriptionService._createInscription(dataInscription.event.id, dataUser.userResult.user.id, dataInscription.type,