Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mapbox/dyno
Browse files Browse the repository at this point in the history
  • Loading branch information
mick committed Jul 26, 2014
2 parents fd645e9 + a5d292e commit 404033c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/item.js
Expand Up @@ -13,6 +13,7 @@ items.getItem = function(key, opts, cb){
ConsistentRead: opts.consistentRead || false
};
config.dynamo.getItem(params, function(err, resp) {
if (err) return cb(err);
resp.Item = types.typesFromDynamo(resp.Item)
if(resp && resp.Item && resp.Item.length === 1)
resp.Item = resp.Item[0];
Expand Down

0 comments on commit 404033c

Please sign in to comment.