a
This commit is contained in:
parent
392263a2d6
commit
354adca8ef
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user