.
This commit is contained in:
parent
7fdc272b37
commit
45a5330539
@ -236,6 +236,19 @@ const extraControllers = {
|
||||
};
|
||||
}
|
||||
|
||||
//MAPEO SALIDA API4
|
||||
//Tratamos resultado, si hay que remover campos para API4 web
|
||||
if (res.locals.v4){
|
||||
const arrayFieldsremove = res.locals.v4.removeFields;
|
||||
inscription.rows.map((row)=>{
|
||||
arrayFieldsremove.forEach(campo => {
|
||||
if (campo in row) {
|
||||
delete row[campo];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
console.log(">>>>>>>voy a dar inscription", inscription);
|
||||
return handleResultResponse(inscription, null, params, res, httpStatus.OK);
|
||||
} catch (error) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user