eliminación lógica en reportes
This commit is contained in:
parent
86cfcc64cd
commit
95d5a5dd0f
|
@ -31,6 +31,9 @@ export class ReportsService {
|
|||
}
|
||||
|
||||
async remove(id: string) {
|
||||
return this.reportModel.findByIdAndRemove({ _id: id }).exec();
|
||||
return this.reportModel.findOneAndUpdate({ _id: id }, {status: '-1'}, {
|
||||
new: true,
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue