ignore AWS config when using endpoint field

This commit is contained in:
Martin McKeaveney 2022-03-25 10:35:59 +00:00
parent 8887b67ecc
commit 33506bebb4
1 changed files with 3 additions and 1 deletions

View File

@ -131,7 +131,9 @@ module DynamoModule {
constructor(config: DynamoDBConfig) { constructor(config: DynamoDBConfig) {
this.config = config this.config = config
if (!this.config.endpoint) {
this.connect() this.connect()
}
let options = { let options = {
correctClockSkew: true, correctClockSkew: true,
endpoint: config.endpoint ? config.endpoint : undefined, endpoint: config.endpoint ? config.endpoint : undefined,