Skip to content

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

feat: resolved ts error

=a67b506c46ae
diff --git a/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/unix-linux-local-account-rotation-schemas.ts b/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/unix-linux-local-account-rotation-schemas.ts
index 747b0e8ffa..8ca498a50e 100644
--- a/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/unix-linux-local-account-rotation-schemas.ts
+++ b/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/unix-linux-local-account-rotation-schemas.ts
@@ -41,7 +41,7 @@ const UnixLinuxLocalAccountRotationParametersSchema = z.object({
.nativeEnum(UnixLinuxLocalAccountRotationMethod)
.optional()
.describe(SecretRotations.PARAMETERS.UNIX_LINUX_LOCAL_ACCOUNT.rotationMethod),
- useSudo: z.boolean().default(false).describe(SecretRotations.PARAMETERS.UNIX_LINUX_LOCAL_ACCOUNT.useSudo)
+ useSudo: z.boolean().default(false).optional().describe(SecretRotations.PARAMETERS.UNIX_LINUX_LOCAL_ACCOUNT.useSudo)
});
const UnixLinuxLocalAccountRotationSecretsMappingSchema = z.object({