return whole group.chat after chat message is sent

This commit is contained in:
Matteo Pagliazzi
2013-11-06 21:27:24 +01:00
parent 5ebab59780
commit 3b18c322bc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ api.postChat = function(req, res, next) {
group.save(function(err, saved){
if (err) return res.json(500, {err:err});
res.json({message: saved.chat[0]});
res.json({chat: saved.chat});
});
}