Skip to content

Commit

Permalink
Allow customising database user
Browse files Browse the repository at this point in the history
  • Loading branch information
programmatix committed Jan 29, 2025
1 parent a062d08 commit d11bd1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nest/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const pgp = require('pg-promise')(initOptions);
provide: DatabaseService,
useFactory: async () => {
const client = pgp({
user: 'postgres',
user: process.env.CB_DATABASE_USERNAME ? process.env.CB_DATABASE_USERNAME : 'postgres',
host: process.env.CB_DATABASE ? process.env.CB_DATABASE : 'localhost',
database: 'perf',
password: process.env.CB_DATABASE_PASSWORD,
Expand Down

0 comments on commit d11bd1c

Please # to comment.