return objeto
This commit is contained in:
@@ -47,9 +47,9 @@ const cancelar = async (body) => {
|
||||
)
|
||||
)
|
||||
.then((res) => Servicio.update({ idStatus: 10 }, { where: { idServicio } }))
|
||||
.then((res) => {
|
||||
return { message: 'Se cancelo correctamente este Servicio Social.' };
|
||||
});
|
||||
.then((res) => ({
|
||||
message: 'Se cancelo correctamente este Servicio Social.',
|
||||
}));
|
||||
};
|
||||
|
||||
module.exports = cancelar;
|
||||
|
||||
Reference in New Issue
Block a user