Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bradsawadye committed Feb 2, 2024
1 parent 43e8917 commit 6e8a3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion identity-access-manager-keycloak/importer/create-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const pool = new Pool({
const result = await client.query('SELECT 1 FROM pg_database WHERE datname = $1', [db])

if (!result.rows.length) {
const user = await client.query('SELECT 1 FROM pg_user WHERE username = $1', [newUser])
const user = await client.query('SELECT 1 FROM pg_user WHERE usename = $1', [newUser])

if (!user.rows.length) {
await client.query(`CREATE USER ${newUser} WITH ENCRYPTED PASSWORD '${newUserPassword}';`)
Expand Down

0 comments on commit 6e8a3a0

Please sign in to comment.