Skip to content

Commit 9f38ea1

Browse files
gimseporsager
authored andcommitted
adding env.PGUSERNAME ||
1 parent b231b68 commit 9f38ea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ function parseOptions(a, b) {
480480
{}
481481
),
482482
connection : {
483-
application_name: 'postgres.js',
483+
application_name: env.PGUSERNAME || 'postgres.js',
484484
...o.connection,
485485
...Object.entries(query).reduce((acc, [k, v]) => (k in defaults || (acc[k] = v), acc), {})
486486
},

0 commit comments

Comments
 (0)