Skip to content

Commit 55854e6

Browse files
committed
fix: fix password issue with env
1 parent 10a081b commit 55854e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ export function wrapDockerCommand(options, command) {
1818
return command
1919
}
2020

21-
export function getCommandEnv(options) {
22-
if (options.knexConfig.password) {
21+
export function getCommandEnv({ knexConfig: { connection } }) {
22+
if (connection.password) {
2323
return {
2424
...process.env,
25-
PGPASSWORD: options.knexConfig.password,
25+
PGPASSWORD: connection.password,
2626
}
2727
}
2828

0 commit comments

Comments
 (0)