0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 00:22:47 +00:00

Merge branch 'master' into addEditorThemes-#362

This commit is contained in:
G.Ambatte
2023-04-05 07:45:03 +12:00
committed by GitHub
3 changed files with 19 additions and 3 deletions

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' };