@anabode/dynamodb_service
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -181,3 +181,3 @@ 'use strict'; | ||
if (callback) { | ||
_this.dynamo.delete(_deleteStuff, (err, data) => { | ||
_this.dynamo.query(_queryStuff, (err, data) => { | ||
return callback(err, data); | ||
@@ -187,3 +187,3 @@ }); | ||
return new Promise((resolve, reject) => { | ||
const promise = _this.dynamo.delete(_deleteStuff).promise() | ||
const promise = _this.dynamo.query(_queryStuff).promise() | ||
promise.then((data) => { | ||
@@ -197,7 +197,4 @@ return resolve(data) | ||
}; | ||
this.dynamo.query(_queryStuff, (err, data) => { | ||
return callback(err, data); | ||
}); | ||
}; | ||
module.exports = exports = Service; |
{ | ||
"name": "@anabode/dynamodb_service", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "dynamodb abstraction ", |
8180
182