diff --git a/modules/events/events_inscriptions.controller.js b/modules/events/events_inscriptions.controller.js index 767cfbc..42628cc 100644 --- a/modules/events/events_inscriptions.controller.js +++ b/modules/events/events_inscriptions.controller.js @@ -239,13 +239,11 @@ 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]; - } - }); + const arrayFieldsremove = res.locals.v4.removeFields; + arrayFieldsremove.forEach(campo => { + if (campo in inscription) { + delete inscription[campo]; + } }); };