This commit is contained in:
David Arranz 2019-09-02 18:00:34 +02:00
parent 1518953416
commit 4fe2488fa1
2 changed files with 4 additions and 2 deletions

View File

@ -403,8 +403,10 @@ console.log('voy a crearrrrrr la inscripcion');
null,
dataInscription.event.overflow_eventId);
}
else
else {
console.log('No se ha podido actualizar el aforo del evento');
return handleResultResponse("No se ha podido actualizar el aforo del evento", null, params, res, httpStatus.NOT_FOUND);
}
}
else
return handleResultResponse("Aforo completo y no hay lista de espera", null, params, res, httpStatus.NOT_FOUND);

View File

@ -55,7 +55,7 @@ const extraMethods = {
confirmed: confirmed,
},
{
where: { id: eventId }
where: { id: eventId, typeId: { [Sequelize.Op.ne]: null} }
})
.then(function (result) {
console.log('>>>>>>>>>>>>>>>>>>>>>>>>><resultado _updateConfirmedEvent', result);