diff --git a/lib/databases/dynamodb.js b/lib/databases/dynamodb.js index 0276c0a8..deeb56d7 100644 --- a/lib/databases/dynamodb.js +++ b/lib/databases/dynamodb.js @@ -63,7 +63,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 createEventsTable = function (callback) {