mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-21 14:31:31 +00:00
whatever
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user