Skip to content

Commit

Permalink
Use camelcase for funtion name
Browse files Browse the repository at this point in the history
  • Loading branch information
bradsawadye committed May 28, 2024
1 parent 2abe67f commit bb2d67e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client-registry-jempi/importer/postgres/create-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const insertQueries = [`INSERT INTO Notification_State(State)
}
}

const createUSer = async () => {
const createUser = async () => {
const user = await client.query('SELECT 1 FROM pg_user WHERE usename = $1', [newUser])

if (!user.rows.length) {
Expand All @@ -123,7 +123,7 @@ const insertQueries = [`INSERT INTO Notification_State(State)
try {
await createDb(newDb)

await createUSer()
await createUser()
await Promise.all(tableQueries.map(query => client.query(query)))

await Promise.all(insertQueries.map(query => client.query(query)))
Expand Down

0 comments on commit bb2d67e

Please sign in to comment.