fix: use parameterized query
Signed-off-by: Chris Langhout <clanghout@bol.com>
This commit is contained in:
committed by
Chris Langhout
parent
e78fbec111
commit
8f1500e118
@@ -52,7 +52,7 @@ export function createPgDatabaseClient(
|
||||
database.client.pool.on(
|
||||
'createSuccess',
|
||||
async (_event: number, pgClient: Client) => {
|
||||
await pgClient.query(`SET ROLE ${role}`);
|
||||
await pgClient.query('SET ROLE $1', [role]);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user