dynamo icon indicating copy to clipboard operation
dynamo copied to clipboard

item.destroy doesn't actually do anything

Open edwsh opened this issue 14 years ago • 2 comments

  1. It doesn't delete anything from the table
  2. It returns null as err (first param) regardless

edwsh avatar Oct 26 '12 17:10 edwsh

would you mind pushing a failing test for this?

jed avatar Oct 29 '12 08:10 jed

I figured out the reason.

You're required to call:

db.fetch(function(err) {})

before deletes will work.

On Mon, Oct 29, 2012 at 4:55 PM, Jed Schmidt [email protected]:

would you mind pushing a failing test for this?

— Reply to this email directly or view it on GitHubhttps://github.com/jed/dynamo/issues/38#issuecomment-9859509.

edwsh avatar Oct 29 '12 09:10 edwsh