Change Model.remove to Model.deleteOne

This commit is contained in:
G.Ambatte committed 2023-04-02 20:57:03 +12:00
1 parent d1dd5e34bd
commit dce880610d
1 file changed
+1 -1
+1 -1
View File
@@ -305,7 +305,7 @@ If you believe you should have access to this brew, ask the file owner to invite
if(brew.authors.length === 0) {
// Delete brew if there are no authors left
await brew.remove()
await brew.deleteOne()
.catch((err)=>{
console.error(err);
throw { status: 500, message: 'Error while removing' };