1
0
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:
Scott Tolksdorf
2016-05-14 13:59:21 -04:00
parent c4c09f0a69
commit 5537d974ff
6 changed files with 16 additions and 22 deletions

View File

@@ -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");