mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-07-09 00:20:29 +08:00
sessions,ajaxSocketLogin, authorData=(schema,socket)
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user