eliminación lógica en áreas comunes

This commit is contained in:
Mariela 2022-07-31 17:19:23 -06:00
parent 2519136654
commit 17941893cb
1 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,8 @@ export class CommonAreasService {
} }
async remove(id: string) { async remove(id: string) {
return this.commonAreaModel.findByIdAndRemove({ _id: id }).exec(); return this.commonAreaModel.findOneAndUpdate({ _id: id }, {status: '-1'}, {
new: true,
});
} }
} }