resubir carta de termino

This commit is contained in:
Lemuel Marquez
2020-11-29 17:27:25 -06:00
parent 18829a5e48
commit 6c1f05d77e
4 changed files with 76 additions and 3 deletions
@@ -58,7 +58,10 @@ const cancelar = async (body) => {
);
})
.then((res) => {
return Servicio.update({ idStatus: 8 }, { where: { idServicio } });
return Servicio.update(
{ idStatus: 8, cartaTermino: "" },
{ where: { idServicio } }
);
})
.then((res) => {
return { message: 'Se rechazo correctamente la Carta de Termino.' };