Skip to content

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

fix: type errors

Daniel Hougaard166e4fa224b9
diff --git a/backend/src/server/routes/v1/app-connection-routers/app-connection-endpoints.ts b/backend/src/server/routes/v1/app-connection-routers/app-connection-endpoints.ts
index 9b0a2f2516..46bc358902 100644
--- a/backend/src/server/routes/v1/app-connection-routers/app-connection-endpoints.ts
+++ b/backend/src/server/routes/v1/app-connection-routers/app-connection-endpoints.ts
@@ -38,7 +38,7 @@ export const registerAppConnectionEndpoints = <T extends TAppConnection, I exten
isPlatformManagedCredentials?: boolean;
gatewayId?: string | null;
isAutoRotationEnabled?: boolean | null;
- rotation?: TCreateAppConnectionCredentialRotationSchema | null;
+ rotation?: Partial<TCreateAppConnectionCredentialRotationSchema> | null;
}>;
sanitizedResponseSchema: z.ZodTypeAny;
}) => {
@@ -365,8 +365,8 @@ export const registerAppConnectionEndpoints = <T extends TAppConnection, I exten
description,
isPlatformManagedCredentials,
gatewayId,
- isAutoRotationEnabled,
- rotation
+ isAutoRotationEnabled: isAutoRotationEnabled ?? undefined,
+ rotation: rotation ?? undefined
},
req.permission
)) as T;