Skip to content

Commit

Permalink
FLOW_DATABASE vars
Browse files Browse the repository at this point in the history
  • Loading branch information
TangoYankee committed Oct 7, 2024
1 parent 7b5560b commit 7ce4807
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-api-database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
- ${{ services.FLOW_DATABASE_PORT }}:5432
steps:
- name: checkout code
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions pg/pg-connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const credentials = {
user: process.env.FLOW_DATABASE_USER,
password: process.env.FLOW_DATABASE_PASSWORD,
database: process.env.FLOW_DATABASE_NAME!,
ssl: process.env.DATABASE_ENV !== "development" && {
rejectUnauthorized: false,
},
ssl: process.env.FLOW_DATABASE_ENV !== "development" && {
rejectUnauthorized: false,
},
};

export const pgClient = new Client(credentials);
Expand Down

0 comments on commit 7ce4807

Please sign in to comment.