nedb-promise icon indicating copy to clipboard operation
nedb-promise copied to clipboard

Promise swallowing error from datastoreInstance.find()

Open iyobo opened this issue 6 years ago • 1 comments
trafficstars

datastoreInstance.find() hangs forever, but works when datastoreInstance.find({}) is used instead. The issue is that the predicate argument is required.

The error that explains this should be bubbled to the top so it can be caught instead of waiting forever.

iyobo avatar Jul 04 '19 21:07 iyobo

Good "catch" 🤪. I'll have to look into this

jrop avatar Jul 05 '19 02:07 jrop