Hi,
i just don't get my own script.
I do this - with the help of underscore and node-orm2 etc... -
*
*
_.each(objectInDatabase, function(object, index)
{
Object.find({"name":object.name}, 1, function(err, objects) {
if ( objects.length > 0 ) {
console.log(objects); // found it!
relatedObject.create({"object_id":objects[0].id, "found":1});
// never got called?* WHY?*
}
});
});
But the create is never called... Why? I found so many answers to this
problems, but nothing helped..
Because inside the loop, the data is there..
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.