Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Fix backend linter issue as well

Fang-Pen Lin456f87a4eeb4
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 91ffa61ea3..c87aa019a7 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
@@ -58,19 +58,14 @@ export const MySQLAccountSchema = BasePamAccountSchema.extend({
credentials: MySQLAccountCredentialsSchema
});
-export const CreateMySQLAccountSchema = BaseCreatePamAccountSchema.omit({
- // We don't support pwd rotation for mysql yet
- rotationEnabled: true,
- rotationIntervalSeconds: true
-}).extend({
- credentials: MySQLAccountCredentialsSchema
+export const CreateMySQLAccountSchema = BaseCreatePamAccountSchema.extend({
+ credentials: MySQLAccountCredentialsSchema,
+ //We don't support pwd rotation for mysql yet
+ rotationEnabled: z.boolean().optional(),
+ rotationIntervalSeconds: z.number().optional()
});
-export const UpdateMySQLAccountSchema = BaseUpdatePamAccountSchema.omit({
- // We don't support pwd rotation for mysql yet
- rotationEnabled: true,
- rotationIntervalSeconds: true
-}).extend({
+export const UpdateMySQLAccountSchema = BaseUpdatePamAccountSchema.extend({
credentials: MySQLAccountCredentialsSchema.optional()
});