Skip to content

Commit

Permalink
bug fix - honor URL params
Browse files Browse the repository at this point in the history
  • Loading branch information
ivawzh committed Aug 25, 2020
1 parent 047bf1a commit 76195a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pg-god",
"description": "Tiny library that helps create and kill PostgreSQL database.",
"version": "1.0.10",
"version": "1.0.11",
"author": "ivan.wang @ivawzh",
"bin": {
"pg-god": "./bin/run"
Expand Down
2 changes: 1 addition & 1 deletion src/commands/db-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class DbCreate extends Command {
}
} = this.parse(DbCreate)
const urlParams = dbUrl ? parsePostgresUrl(dbUrl) : {}
const finalParams = merge(urlParams, flags)
const finalParams = merge(flags, urlParams)
const {
databaseName,
userName,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/db-drop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class DbDrop extends Command {
} = this.parse(DbDrop)

const urlParams = dbUrl ? parsePostgresUrl(dbUrl) : {}
const finalParams = merge(urlParams, flags)
const finalParams = merge(flags, urlParams)
const {
databaseName,
userName,
Expand Down

0 comments on commit 76195a4

Please sign in to comment.