Fix linter issues

This commit is contained in:
Fang-Pen Lin
2025-10-24 12:54:17 -07:00
parent a87c290893
commit dd713fbe61
2 changed files with 5 additions and 4 deletions
@@ -59,9 +59,7 @@ export const MySQLAccountSchema = BasePamAccountSchema.extend({
}); });
export const CreateMySQLAccountSchema = BaseCreatePamAccountSchema.extend({ export const CreateMySQLAccountSchema = BaseCreatePamAccountSchema.extend({
credentials: MySQLAccountCredentialsSchema, credentials: MySQLAccountCredentialsSchema
// We don't support pwd rotation for mysql yet
rotationEnabled: z.boolean().default(false)
}); });
export const UpdateMySQLAccountSchema = BaseUpdatePamAccountSchema.extend({ export const UpdateMySQLAccountSchema = BaseUpdatePamAccountSchema.extend({
@@ -18,7 +18,10 @@ type Props = {
}; };
const formSchema = genericAccountFieldsSchema.extend({ 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<typeof formSchema>; type FormData = z.infer<typeof formSchema>;