mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2026-01-05 14:39:15 +00:00
Both types of tests are now working
This commit is contained in:
@@ -84,15 +84,6 @@ const BrewData = {
|
||||
const newBrew = new Brew(brew);
|
||||
|
||||
return newBrew.save();
|
||||
|
||||
//TODO: add error decorators to the catches
|
||||
const temp = newBrew.save().then(()=>{
|
||||
console.log('SAVED');
|
||||
});
|
||||
|
||||
console.log(typeof temp, _.keys(temp), temp);
|
||||
|
||||
return temp;
|
||||
},
|
||||
update : (newBrew) => {
|
||||
return Brew.findOneAndUpdate({ editId : newBrew.editId },
|
||||
|
||||
Reference in New Issue
Block a user