mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-28 20:03:02 +00:00
Change Model.remove to Model.deleteOne
This commit is contained in:
@@ -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) {
|
if(brew.authors.length === 0) {
|
||||||
// Delete brew if there are no authors left
|
// Delete brew if there are no authors left
|
||||||
await brew.remove()
|
await brew.deleteOne()
|
||||||
.catch((err)=>{
|
.catch((err)=>{
|
||||||
console.error(err);
|
console.error(err);
|
||||||
throw { status: 500, message: 'Error while removing' };
|
throw { status: 500, message: 'Error while removing' };
|
||||||
|
|||||||
Reference in New Issue
Block a user