Created
January 31, 2015 02:33
-
-
Save ralphtheninja/1ce472bc4dc0215d502f to your computer and use it in GitHub Desktop.
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
function eachUser(user) { | |
// Suchabfrage starten | |
graphabfrage.get(user.id, function(err, res) { | |
if (err) console.log('FEHLER updatelocationids: '.JSON.stringify(err)); | |
dblocations.findOne({ id: user.id }, function (err, fbitem2){ | |
// bla bla .. | |
}) | |
}) | |
} | |
function foo(err, users) { | |
users.forEach(eachUser) | |
} | |
function getLocations(req, res) { | |
dblocations.find({ $or: [{"blacklist":"0"},{"whitelist":"1"}] } ).exec(foo) | |
} | |
app.get('/v1/getids', getLocations) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment