File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,7 @@ export class DynamoRx {
1414 // this.logger = new Logger(() => LogLevel.DEBUG, 'DynamoDbService');
1515
1616 // create the actual dynamo db client
17- if ( awsRegion ) {
18- this . dynamoDb = new DynamoDB ( )
19- } else {
20- this . dynamoDb = new DynamoDB ( { region : awsRegion } )
21- }
17+ this . dynamoDb = new DynamoDB ( )
2218 this . sessionValidityEnsurer = sessionValidityEnsurer
2319 }
2420
Original file line number Diff line number Diff line change @@ -24,11 +24,10 @@ export class DynamoStore<T> {
2424
2525 constructor (
2626 private modelClazz : ModelConstructor < T > ,
27- awsRegion ?: string ,
2827 tableNameResolver : TableNameResolver = DEFAULT_TABLE_NAME_RESOLVER ,
2928 sessionValidityEnsurer : SessionValidityEnsurer = DEFAULT_SESSION_VALIDITY_ENSURER
3029 ) {
31- this . dynamoRx = new DynamoRx ( sessionValidityEnsurer , awsRegion )
30+ this . dynamoRx = new DynamoRx ( sessionValidityEnsurer )
3231 this . tableName = tableNameResolver ( MetadataHelper . get ( this . modelClazz ) . modelOptions . tableName )
3332 }
3433
You can’t perform that action at this time.
0 commit comments