From c0d6204e1368a9c8872084103bc611bce84c06b0 Mon Sep 17 00:00:00 2001 From: Fang-Pen Lin Date: Thu, 23 Oct 2025 14:40:51 -0700 Subject: [PATCH] Fix pwd rotation syntax --- .../ee/services/pam-resource/shared/sql/sql-resource-factory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/ee/services/pam-resource/shared/sql/sql-resource-factory.ts b/backend/src/ee/services/pam-resource/shared/sql/sql-resource-factory.ts index bc224336a..92caefc82 100644 --- a/backend/src/ee/services/pam-resource/shared/sql/sql-resource-factory.ts +++ b/backend/src/ee/services/pam-resource/shared/sql/sql-resource-factory.ts @@ -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()