petersirka/nosql

removing all records does not work

Closed this issue · 1 comments

I've tried the following code

nosql.remove(new function filter(item) {
    return true; // no filtering simply remove all
}, function callback(count) {
    console.log(count + ' deleted');
});

Does not work and the callback was never called - only when the filter does not return all items the record is deleted (e.g. instead of return true, return item.id === 1 will work)

Thanks. I fixed it.

Please, update your nosql module (through npm).