eliminación lógica en reservaciones
This commit is contained in:
parent
a39dc26216
commit
86cfcc64cd
|
@ -41,6 +41,8 @@ export class ReservationsService {
|
|||
}
|
||||
|
||||
async remove(id: string) {
|
||||
return this.reservationModel.findByIdAndRemove({ _id: id }).exec();
|
||||
return this.reservationModel.findOneAndUpdate({ _id: id }, {status: '-1'}, {
|
||||
new: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue