coresmart / persistencejs

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
http://persistencejs.org
1.73k stars 240 forks source link

Delete on Find isn't working #164

Open joseluis10101 opened 9 years ago

joseluis10101 commented 9 years ago

When I find for a record and remove that, the plugin isn't delete this. Why cant delete?

User.findBy('auth', true, function(item) { persistence.remove(item); persistence.flush(); });

Thanks for the answer.