Fix pwd rotation syntax

This commit is contained in:
Fang-Pen Lin
2025-10-23 14:40:51 -07:00
parent bcf4b6931b
commit c0d6204e13

View File

@@ -115,7 +115,7 @@ const makeSqlConnection = (
},
rotateCredentials: async (currentCredentials) => {
const newPassword = alphaNumericNanoId(32);
await client.raw(`ALTER USER ?? WITH PASSWORD ?'`, [currentCredentials.username, newPassword]);
await client.raw(`ALTER USER ?? WITH PASSWORD ?`, [currentCredentials.username, newPassword]);
return { username: currentCredentials.username, password: newPassword };
},
close: () => client.destroy()