sessions,ajaxSocketLogin, authorData=(schema,socket)

This commit is contained in:
Curtis SerVaas
2014-08-20 10:30:19 -07:00
parent 3f25adb1e6
commit 56aab83d53
12 changed files with 432 additions and 352 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ function updateGlobals(rootSnaps){
//This should only be called once per ID.
function FetchSelfAndChildrenBack(rootId, callback){
MySnap.find({cur_id: rootId}).sort({timestamp: 1}).exec(function(err, rootSnaps){
MySnap.find({cur_id: rootId}).populate('authorId','_id google.name' ).sort({timestamp: 1}).
exec(function(err, rootSnaps){
if(err){console.log("ERROR HERE")}
updateGlobals(rootSnaps);