.
This commit is contained in:
parent
074e5803b9
commit
21cc9a703f
@ -454,7 +454,6 @@ console.log('>checkInscriptionByMail>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', eventId, ema
|
||||
},
|
||||
|
||||
deleteInscription: async (req, res, next) => {
|
||||
console.log('DELETEEEEEEE');
|
||||
const params = extractParamsFromRequest(req, res, {});
|
||||
const user = req.user;
|
||||
const inscriptionId = params.params.id;
|
||||
@ -468,6 +467,9 @@ console.log('>checkInscriptionByMail>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', eventId, ema
|
||||
//Solo se tiene en cuenta el marketinglist del evento
|
||||
marketingListId = inscription.event.marketing_list;
|
||||
|
||||
console.log('inscription.userId>>>>>>>>>>>>>>>>>>>>>>><<< ', inscription.userId);
|
||||
console.log('user>>>>>>>>>>>>>>>>>>>>>>><<< ', user);
|
||||
|
||||
//Esto no seria posible si es asi damos error
|
||||
if (!inscription || inscription.userId !== user.id)
|
||||
return handleResultResponse("Inscription no encontrada", null, params, res, httpStatus.NOT_FOUND);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user