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
+4 -6
View File
@@ -47,12 +47,10 @@ const liberacion = async (body) => {
}
})
.then((res) => Servicio.update(update, { where: { idServicio } }))
.then((res) => {
return {
message:
'Se cambio de estatus correctamente y se envio un correo al alumno informandole de su liberación.',
};
});
.then((res) => ({
message:
'Se cambio de estatus correctamente y se envio un correo al alumno informandole de su liberación.',
}));
};
module.exports = liberacion;