Skip to content

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

fix lint

x032205def4d138d95b
diff --git a/backend/src/ee/services/pam-resource/pam-resource-types.ts b/backend/src/ee/services/pam-resource/pam-resource-types.ts
index dea374fbc7..2d89a2add2 100644
--- a/backend/src/ee/services/pam-resource/pam-resource-types.ts
+++ b/backend/src/ee/services/pam-resource/pam-resource-types.ts
@@ -136,7 +136,7 @@ export type TPamResourceFactoryRotateAccountCredentials<C extends TPamAccountCre
export type TPostRotateContext = {
pamAccountDependenciesDAL: Pick<TPamAccountDependenciesDALFactory, "findByAccountId" | "updateById">;
- pamResourceDAL: Pick<TPamResourceDALFactory, "findById">;
+ pamResourceDAL: Pick<TPamResourceDALFactory, "findById" | "find">;
kmsService: Pick<TKmsServiceFactory, "createCipherPairWithDataKey">;
};
diff --git a/backend/src/ee/services/pam-resource/shared/dependency-sync-fns.ts b/backend/src/ee/services/pam-resource/shared/dependency-sync-fns.ts
index 30e441e4f3..e0a32361c4 100644
--- a/backend/src/ee/services/pam-resource/shared/dependency-sync-fns.ts
+++ b/backend/src/ee/services/pam-resource/shared/dependency-sync-fns.ts
@@ -1,7 +1,7 @@
import RE2 from "re2";
import { runPowershell } from "winrm-client";
-import { TPamAccountDependencies, TPamResources } from "@app/db/schemas";
+import { TPamAccountDependencies } from "@app/db/schemas";
import { groupBy } from "@app/lib/fn";
import { GatewayProxyProtocol } from "@app/lib/gateway";
import { withGatewayV2Proxy } from "@app/lib/gateway-v2/gateway-v2";
@@ -109,7 +109,7 @@ export const syncDependenciesAfterRotation = async ({
let hostname: string | null = null;
try {
- const decrypted = await decryptResource(resource as TPamResources, projectId, ctx.kmsService);
+ const decrypted = await decryptResource(resource, projectId, ctx.kmsService);
rotationCredentials = decrypted.rotationAccountCredentials as {
username: string;
password: string;