Skip to content

Commit

Permalink
Bugfix: Use correct values for auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Robsahm authored and alexrobsahm committed Nov 3, 2017
1 parent fff128e commit 1f268cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const urlToObj = conStr => {
error(
`
You must define a valid database url!
A database URL looks like:
A database URL looks like:
postgres://localhost/omni/
But you gave me:
${obscurePassword(conStr, auth.password)}
Expand All @@ -59,8 +59,8 @@ But you gave me:
}

return {
user: auth[0],
password: auth[1],
user: auth.username,
password: auth.password,
host: conParams.hostname,
port: conParams.port,
database: conParams.pathname.split("/")[1],
Expand Down

0 comments on commit 1f268cb

Please sign in to comment.