a
This commit is contained in:
parent
6dc8b4b9de
commit
a7e92409a3
@ -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)
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -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
|
||||
);
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user