1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-21 14:31:31 +00:00
This commit is contained in:
Scott Tolksdorf
2017-01-01 11:08:08 -08:00
parent 68ecf749ea
commit 25e0a1607a
4 changed files with 31 additions and 8 deletions

View File

@@ -91,7 +91,8 @@ const BrewData = {
update : (newBrew) => {
return Brew.findOneAndUpdate({ editId : newBrew.editId },
_.merge(newBrew, { updatedAt : Date.now() }),
{new : true, upsert : true}).exec(); //TODO: TEST THIS that this returns a reocrd
{new : true, upsert : true}
).exec(); //TODO: TEST THIS that this returns a record
},
remove : (editId) => {
return Brew.find({ editId }).remove().exec();