mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-18 03:41:29 +00:00
Fixed titles saving
This commit is contained in:
@@ -49,6 +49,7 @@ module.exports = function(app){
|
||||
if(!objs.length || err) return res.status(404).send("Can not find homebrew with that id");
|
||||
var resEntry = objs[0];
|
||||
resEntry.text = req.body.text;
|
||||
resEntry.title = req.body.title;
|
||||
resEntry.updatedAt = new Date();
|
||||
resEntry.save(function(err, obj){
|
||||
if(err) return res.status(500).send("Error while saving");
|
||||
|
||||
Reference in New Issue
Block a user