eliminación lógica en invitados
This commit is contained in:
parent
95d5a5dd0f
commit
91ac92719a
|
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue