Skip to content

Commit

Permalink
feat: init db wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
alinarublea committed Oct 19, 2023
1 parent e678ad8 commit fabbd71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const TABLE_AUDITS = 'spacecat-audit-index';
class DB {
constructor(context) {
this.client = new DynamoDBClient({ region: context.region });
this.docClient = DynamoDBDocumentClient.from(client);
this.docClient = DynamoDBDocumentClient.from(this.client);
}

/**
Expand Down

0 comments on commit fabbd71

Please sign in to comment.