-
-
Save chrisinajar/2510984 to your computer and use it in GitHub Desktop.
Issue with defining variable. first console logs correct result, second one shows unmodified variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.get('/canvas', function(req,res) { | |
database.activegalleries(function(results){ | |
for (gallery in results){ | |
var name = results[gallery]['gallery_name']; | |
database.viewgallery(name, function(imgs){ | |
results[gallery]['imgs']=imgs; | |
console.log(results[gallery]) | |
}); | |
} | |
console.log(results); | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment