Closed Laptopmini closed 6 years ago
delete: function(id, cb) { return table.findOneAndDelete({id: id}, cb); }
Could this be changed to the following?
delete: function(data, cb) { return table.findOneAndDelete(data, cb); }
That way we can use it in the following manner:
controller.storage.users.delete({ something: { $lt: 30 } }).catch((error) => { console.log(error); });
Thanks for all the great work!
Done. PR #33
Could this be changed to the following?
That way we can use it in the following manner:
Thanks for all the great work!