diff --git a/lib/lock/databases/dynamodb.js b/lib/lock/databases/dynamodb.js index bc203ec..dc24dd9 100644 --- a/lib/lock/databases/dynamodb.js +++ b/lib/lock/databases/dynamodb.js @@ -33,7 +33,7 @@ _.extend(DynamoDB.prototype, { connect: function(callback) { var self = this; self.client = new aws.DynamoDB(self.options.endpointConf); - self.documentClient = new aws.DynamoDB.DocumentClient(self.client); + self.documentClient = new aws.DynamoDB.DocumentClient({ service: self.client }); self.isConnected = true; var createAggregatelockTable = function(done) {