Skip to content

Commit

Permalink
chore: self mutation
Browse files Browse the repository at this point in the history
Signed-off-by: github-actions <github-actions@github.com>
  • Loading branch information
github-actions committed Jun 20, 2023
1 parent 4ad82cf commit 8595154
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/aurora.provision-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@ export class Methods {
console.log(`Running: ${sql}`);
const sqlRes = await client.query(sql);
console.log(`Result of ${sql}: rowCount: ${sqlRes.rowCount}, rows: ${JSON.stringify(sqlRes.rows)}`);

} catch (err) {
console.log(`Failed creating ${username}: ${JSON.stringify(err)}`);
throw err;
Expand All @@ -407,7 +406,11 @@ export class Methods {
const alterPassword = format('ALTER USER %I WITH ENCRYPTED PASSWORD %L', username, password);
console.log(`Updating password for ${username} from secret`);
const sqlRes = await client.query(alterPassword);
console.log(`Result of ALTER USER ... WITH ENCRYPTED PASSWORD ...: rowCount: ${sqlRes.rowCount}, rows: ${JSON.stringify(sqlRes.rows)}`);
console.log(
`Result of ALTER USER ... WITH ENCRYPTED PASSWORD ...: rowCount: ${sqlRes.rowCount}, rows: ${JSON.stringify(
sqlRes.rows,
)}`,
);
} catch (err) {
console.log(`Failed updating password for ${username}: ${JSON.stringify(err)}`);
throw err;
Expand Down

0 comments on commit 8595154

Please sign in to comment.