From dd713fbe612efccc4223e2f50cbf9b4faf175ad0 Mon Sep 17 00:00:00 2001 From: Fang-Pen Lin Date: Fri, 24 Oct 2025 12:54:17 -0700 Subject: [PATCH] Fix linter issues --- .../ee/services/pam-resource/mysql/mysql-resource-schemas.ts | 4 +--- .../components/PamAccountForm/MySQLAccountForm.tsx | 5 ++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/src/ee/services/pam-resource/mysql/mysql-resource-schemas.ts b/backend/src/ee/services/pam-resource/mysql/mysql-resource-schemas.ts index 6c430c9b1..8d3589a8a 100644 --- a/backend/src/ee/services/pam-resource/mysql/mysql-resource-schemas.ts +++ b/backend/src/ee/services/pam-resource/mysql/mysql-resource-schemas.ts @@ -59,9 +59,7 @@ export const MySQLAccountSchema = BasePamAccountSchema.extend({ }); export const CreateMySQLAccountSchema = BaseCreatePamAccountSchema.extend({ - credentials: MySQLAccountCredentialsSchema, - // We don't support pwd rotation for mysql yet - rotationEnabled: z.boolean().default(false) + credentials: MySQLAccountCredentialsSchema }); export const UpdateMySQLAccountSchema = BaseUpdatePamAccountSchema.extend({ diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/MySQLAccountForm.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/MySQLAccountForm.tsx index 23b05610f..131da7ef3 100644 --- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/MySQLAccountForm.tsx +++ b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/MySQLAccountForm.tsx @@ -18,7 +18,10 @@ type Props = { }; const formSchema = genericAccountFieldsSchema.extend({ - credentials: BaseSqlAccountSchema + credentials: BaseSqlAccountSchema, + // We don't support rotation for now, just feed a false value to + // make the schema happy + rotationEnabled: z.boolean().default(false) }); type FormData = z.infer;