This commit is contained in:
David Arranz 2019-09-12 12:17:16 +02:00
parent 6dc8b4b9de
commit a7e92409a3
2 changed files with 3 additions and 3 deletions

View File

@ -692,7 +692,7 @@ console.log(headerMail, bodyMail);
}
},
validateInscription: async (req, res, next) => {
checkInscription: async (req, res, next) => {
const params = extractParamsFromRequest(req, res, {});
var eventId = params.params.id;
var email = params.params.email;
@ -708,7 +708,7 @@ console.log(headerMail, bodyMail);
return handleResultResponse("No hay inscripción con ese email", null, params, res, httpStatus.NOT_FOUND);
} catch (error) {
return handleErrorResponse(MODULE_NAME, 'validateInscription', error, res)
return handleErrorResponse(MODULE_NAME, 'checkInscription', error, res)
}
},

View File

@ -246,7 +246,7 @@ routes.post('/web/events/:id/inscriptions',
// Comprobar si estoy inscrito al congreso por la web
routes.get('/web/events/:id/inscriptions/:email',
eventController.validateInscription
eventController.checkInscription
);