listo
This commit is contained in:
@@ -9,10 +9,15 @@ const nuevo = async (body) => {
|
||||
let actividad3 = body.actividad3;
|
||||
let actividad4 = body.actividad4;
|
||||
let actividad5 = body.actividad5;
|
||||
let retroalimentacion = body.retroalimentacion;
|
||||
let retroalimentacion = '';
|
||||
let p6 = body.p6;
|
||||
let p7 = body.p7;
|
||||
|
||||
for (let i = 0; i < body.retroalimentacion.length; i++) {
|
||||
retroalimentacion += body.retroalimentacion[i];
|
||||
if (i < body.retroalimentacion.length - 1) retroalimentacion += ',';
|
||||
}
|
||||
|
||||
return Servicio.findOne({ where: { idServicio } })
|
||||
.then((res) => {
|
||||
if (!res) throw new Error('No existe este Servicio Social.');
|
||||
|
||||
Reference in New Issue
Block a user