Fixed titles saving

This commit is contained in:
Scott Tolksdorf committed 2016-05-14 13:59:21 -04:00
1 parent c4c09f0a69
commit 5537d974ff
6 files changed
+16 -22

No files matched your search

+1
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");