Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

callAsync is not defined #13

Closed
kw4n opened this Issue Mar 9, 2011 · 2 comments

Comments

Projects
None yet
2 participants

kw4n commented Mar 9, 2011

When I'm trying to query model with Dojo's Datastore, I get 'ReferenceError: callAsync is not defined'. I'm using MongoDB. Pure HTTP REST GET call works but for some reason it breaks with Dojo. Is this a bug or am I missing some dependency?

Break line is 319 in mongodb.js and it basically calls 'when(callAsync(collection.count, [search]), function(totalCount){'.I have promissed-io in the mappings so when() should work properly.

kw4n commented Mar 9, 2011

This was suppose to be in perstore's repo and not here, sorry about that :/

Anyway, if you replace when(callAsync with when(convertNodeAsyncFunction, it works. It seems that redis.js has callAsync helper but mongodb.js is missing that one.

Owner

kriszyp commented Mar 9, 2011

Should be fixed with kriszyp/perstore@efe6d5d

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment