Skip to content

Commit

Permalink
fix: DmlHandler using wrong port (#630)
Browse files Browse the repository at this point in the history
DmlHandler was using port number handed to it by Hasura, which is 5432.
We want it to use 6432 which is the port specified by the env variable.
6432 points to pgBouncer.
  • Loading branch information
darunrs authored Apr 2, 2024
1 parent ac02424 commit 9810b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner/src/dml-handler/dml-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class DmlHandler {
user: databaseConnectionParameters.username,
password: databaseConnectionParameters.password,
host: process.env.PGHOST,
port: Number(databaseConnectionParameters.port),
port: Number(process.env.PGPORT ?? databaseConnectionParameters.port),
database: databaseConnectionParameters.database,
});
return new DmlHandler(pgClient);
Expand Down

0 comments on commit 9810b0b

Please sign in to comment.