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

View File

@@ -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({

View File

@@ -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<typeof formSchema>;