Skip to content

Commit

Permalink
Add database name to config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr1sh1 committed Mar 2, 2024
1 parent 0c7c5cb commit 0981a3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.twilio_environment
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ AWS_REGION=eu-west-2
RDS_USER=hilladmin
RDS_SERVER=lexdb-dev.cwxwqmt5bnip.eu-west-2.rds.amazonaws.com
RDS_PORT=1443
RDS_DATABASE=LexIssueData
1 change: 1 addition & 0 deletions functions/statusCallback.protected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const handler: ServerlessFunctionSignature<TwilioEnvironmentVariables, St
password: context.RDS_PASSWORD,
server: context.RDS_SERVER,
port: +context.RDS_PORT,
database: context.RDS_DATABASE,
options: {
encrypt: false,
trustServerCertificate: false
Expand Down
1 change: 1 addition & 0 deletions functions/types/interfaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export interface TwilioEnvironmentVariables extends EnvironmentVariables {
RDS_USER: string;
RDS_SERVER: string;
RDS_PORT: string;
RDS_DATABASE: string;
}

export interface InsertParams {
Expand Down

0 comments on commit 0981a3b

Please sign in to comment.