Skip to content

Commit 10ee8c3

Browse files
committed
feat: Add dynamodbReportsTable configuration and update ReportsService to use it
1 parent 9c912f9 commit 10ee8c3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

backend/src/config/configuration.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ export default () => ({
3535
model: process.env.PERPLEXITY_MODEL || 'sonar',
3636
maxTokens: parseInt(process.env.PERPLEXITY_MAX_TOKENS || '2048', 10),
3737
},
38+
dynamodbReportsTable: process.env.DYNAMODB_REPORTS_TABLE || 'AIMedicalReportReportsTabledevelopment',
3839
});

backend/src/reports/reports.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class ReportsService {
4646
throw new InternalServerErrorException('Failed to initialize database connection');
4747
}
4848

49-
this.tableName = this.configService.get<string>('DYNAMODB_REPORTS_TABLE', 'reports');
49+
this.tableName = this.configService.get<string>('dynamodbReportsTable')!;
5050
}
5151

5252
async findAll(userId: string): Promise<Report[]> {

0 commit comments

Comments
 (0)