item.save(callback) not implemented #30

Closed
tglines opened this Issue Jul 15, 2012 · 1 comment

Projects

None yet

3 participants

@tglines

It appears that item.save(callback) is not implemented as spec'ed out in the API.

@eshao

The problem is that (looking at the save function in Update.js) PutItem is not expected to return anything.

So this code in Update.js:

if (data = data.Attributes) {
  cb(null, Attributes.prototype.parse(data))
}

Actually overwrites data with null, thus triggering the error line cb(), returning undefined.

@jed jed closed this Mar 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment