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 {
14
14
// this.logger = new Logger(() => LogLevel.DEBUG, 'DynamoDbService');
15
15
16
16
// 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 ( )
22
18
this . sessionValidityEnsurer = sessionValidityEnsurer
23
19
}
24
20
Original file line number Diff line number Diff line change @@ -24,11 +24,10 @@ export class DynamoStore<T> {
24
24
25
25
constructor (
26
26
private modelClazz : ModelConstructor < T > ,
27
- awsRegion ?: string ,
28
27
tableNameResolver : TableNameResolver = DEFAULT_TABLE_NAME_RESOLVER ,
29
28
sessionValidityEnsurer : SessionValidityEnsurer = DEFAULT_SESSION_VALIDITY_ENSURER
30
29
) {
31
- this . dynamoRx = new DynamoRx ( sessionValidityEnsurer , awsRegion )
30
+ this . dynamoRx = new DynamoRx ( sessionValidityEnsurer )
32
31
this . tableName = tableNameResolver ( MetadataHelper . get ( this . modelClazz ) . modelOptions . tableName )
33
32
}
34
33
You can’t perform that action at this time.
0 commit comments