0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 14:12:40 +00:00

Add mock markModified when it does not exist

This commit is contained in:
G.Ambatte
2023-02-17 16:14:33 +13:00
parent 74e14ca72a
commit 41db670e63

View File

@@ -323,6 +323,7 @@ If you believe you should have access to this brew, ask the file owner to invite
// Without it, starting with an array of ['A', 'B', 'C'] in the database:
// - when reduced to ['A', 'B'] will result in ['A', 'B', 'C'] saved in the database
// - when reduced to ['B', 'C'] will result in ['B', 'C', 'C'] saved in the database
if(!brew.markModified) { brew.markModified = ()=>{return true;}; };
brew.markModified('authors');
await brew.save()
.catch((err)=>{