eliminación lógica en invitados

This commit is contained in:
Mariela 2022-07-31 17:17:25 -06:00
parent 95d5a5dd0f
commit 91ac92719a
1 changed files with 3 additions and 1 deletions

View File

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