diff --git a/modules/events/event.controller.js b/modules/events/event.controller.js index 615a303..4d97660 100644 --- a/modules/events/event.controller.js +++ b/modules/events/event.controller.js @@ -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) } }, diff --git a/modules/events/event.routes.js b/modules/events/event.routes.js index 659dfbc..e037f0b 100644 --- a/modules/events/event.routes.js +++ b/modules/events/event.routes.js @@ -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 );