0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 04:22:40 +00:00

Fixed issue with arrays not being saved

This commit is contained in:
Scott Tolksdorf
2017-01-10 15:38:13 -05:00
parent e77532acef
commit 0878439750
4 changed files with 40 additions and 3 deletions

View File

@@ -65,6 +65,9 @@ const BrewData = {
delete newBrew.shareId;
delete newBrew.editId;
brew = _.merge(brew, newBrew, { updatedAt : Date.now() });
brew.markModified('authors');
brew.markModified('systems');
return brew.save();
});
},