return objeto

This commit is contained in:
Lemuel Marquez
2021-01-14 16:02:57 -06:00
parent 0de481b596
commit 49005c7b52
19 changed files with 70 additions and 105 deletions
+3 -3
View File
@@ -48,9 +48,9 @@ const informeGlobal = async (body, file) => {
Servicio.update({ informeGlobal: res }, { where: { idServicio } })
)
.then(async (res) => validar.validarPreTermino(idServicio))
.then((res) => {
return { message: `Se subio el Informe Global correctamente. ${res}` };
});
.then((res) => ({
message: `Se subio el Informe Global correctamente. ${res}`,
}));
};
module.exports = informeGlobal;