From 41db670e63e127d832ec9ff90da687a83f767cbe Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Fri, 17 Feb 2023 16:14:33 +1300 Subject: [PATCH] Add mock markModified when it does not exist --- server/homebrew.api.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/homebrew.api.js b/server/homebrew.api.js index 228a08128..afbabdc40 100644 --- a/server/homebrew.api.js +++ b/server/homebrew.api.js @@ -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)=>{