Merge pull request #5087 from Budibase/fix/local-dynamo
ignore AWS config when using endpoint field
This commit is contained in:
commit
bb0144e85f
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue