File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,13 @@ export class DynamoDBService {
16
16
private dynamoClient : DynamoDBDocumentClient ;
17
17
private tableName : string ;
18
18
constructor ( ) {
19
- const clientConfig : any = {
19
+ const clientConfig : DynamoDBClientConfig = {
20
20
region : process . env . AWS_REGION || "ca-central-1" , // Default to Canada Central if not set
21
- } ;
22
- const dynamoEndpoint =
23
- process . env . DYNAMODB_ENDPOINT || "http://localhost:8000" ; // Default to local DynamoDB endpoint
24
- clientConfig . endpoint = dynamoEndpoint ;
25
- clientConfig . credentials = {
26
- accessKeyId : process . env . AWS_ACCESS_KEY_ID || "dummy" ,
27
- secretAccessKey : process . env . AWS_SECRET_ACCESS_KEY || "dummy" ,
21
+ endpoint : process . env . DYNAMODB_ENDPOINT || "http://localhost:8000" , // Default to local DynamoDB endpoint
22
+ credentials : {
23
+ accessKeyId : process . env . AWS_ACCESS_KEY_ID || "dummy" ,
24
+ secretAccessKey : process . env . AWS_SECRET_ACCESS_KEY || "dummy" ,
25
+ } ,
28
26
} ;
29
27
30
28
const client = new DynamoDBClient (
You can’t perform that action at this time.
0 commit comments