Fix backend linter issue as well

This commit is contained in:
Fang-Pen Lin
2025-10-24 12:29:36 -07:00
parent f16ba29bbd
commit 456f87a4ee
@@ -58,19 +58,14 @@ export const MySQLAccountSchema = BasePamAccountSchema.extend({
credentials: MySQLAccountCredentialsSchema credentials: MySQLAccountCredentialsSchema
}); });
export const CreateMySQLAccountSchema = BaseCreatePamAccountSchema.omit({ export const CreateMySQLAccountSchema = BaseCreatePamAccountSchema.extend({
// We don't support pwd rotation for mysql yet credentials: MySQLAccountCredentialsSchema,
rotationEnabled: true, //We don't support pwd rotation for mysql yet
rotationIntervalSeconds: true rotationEnabled: z.boolean().optional(),
}).extend({ rotationIntervalSeconds: z.number().optional()
credentials: MySQLAccountCredentialsSchema
}); });
export const UpdateMySQLAccountSchema = BaseUpdatePamAccountSchema.omit({ export const UpdateMySQLAccountSchema = BaseUpdatePamAccountSchema.extend({
// We don't support pwd rotation for mysql yet
rotationEnabled: true,
rotationIntervalSeconds: true
}).extend({
credentials: MySQLAccountCredentialsSchema.optional() credentials: MySQLAccountCredentialsSchema.optional()
}); });