creationix / nstore

nStore is a simple, in-process key/value database for node.js
MIT License
392 stars 31 forks source link

fix for query.find? #19

Closed amaierhofer closed 13 years ago

amaierhofer commented 13 years ago

Hi,

I used store.all on a newly created i.e. empty store. My expected callback was not being called, due to the query#find implementation that only calls callback when keys are present. Here is a test and fix

amaierhofer commented 13 years ago

done, i ll read up on process.nextTick, so far my nodejs world worked fine without it :)

creationix commented 13 years ago

Thanks, applied!