From dce880610dedbad4ae3ff8f286dc2ff167a2b233 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Sun, 2 Apr 2023 20:57:03 +1200 Subject: [PATCH] Change Model.remove to Model.deleteOne --- server/homebrew.api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/homebrew.api.js b/server/homebrew.api.js index 6f5fcb1ef..08fe89fdf 100644 --- a/server/homebrew.api.js +++ b/server/homebrew.api.js @@ -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' };