Skip to content

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

lint & merge fixes

x032205c044cfd107d7
diff --git a/backend/src/@types/knex.d.ts b/backend/src/@types/knex.d.ts
index 6503cddcb8..b41867cca5 100644
--- a/backend/src/@types/knex.d.ts
+++ b/backend/src/@types/knex.d.ts
@@ -692,16 +692,16 @@ import {
TPamDiscoverySourcesUpdate
} from "@app/db/schemas/pam-discovery-sources";
import { TPamFolders, TPamFoldersInsert, TPamFoldersUpdate } from "@app/db/schemas/pam-folders";
-import {
- TPamResourceRotationRules,
- TPamResourceRotationRulesInsert,
- TPamResourceRotationRulesUpdate
-} from "@app/db/schemas/pam-resource-rotation-rules";
import {
TPamResourceFavorites,
TPamResourceFavoritesInsert,
TPamResourceFavoritesUpdate
} from "@app/db/schemas/pam-resource-favorites";
+import {
+ TPamResourceRotationRules,
+ TPamResourceRotationRulesInsert,
+ TPamResourceRotationRulesUpdate
+} from "@app/db/schemas/pam-resource-rotation-rules";
import { TPamResources, TPamResourcesInsert, TPamResourcesUpdate } from "@app/db/schemas/pam-resources";
import { TPamSessions, TPamSessionsInsert, TPamSessionsUpdate } from "@app/db/schemas/pam-sessions";
import {
diff --git a/backend/src/db/schemas/index.ts b/backend/src/db/schemas/index.ts
index dc817321d3..93d179c1d0 100644
--- a/backend/src/db/schemas/index.ts
+++ b/backend/src/db/schemas/index.ts
@@ -117,8 +117,8 @@ export * from "./pam-discovery-source-resources";
export * from "./pam-discovery-source-runs";
export * from "./pam-discovery-sources";
export * from "./pam-folders";
-export * from "./pam-resource-rotation-rules";
export * from "./pam-resource-favorites";
+export * from "./pam-resource-rotation-rules";
export * from "./pam-resources";
export * from "./pam-sessions";
export * from "./pki-acme-accounts";
diff --git a/backend/src/ee/services/pam-resource/pam-resource-dal.ts b/backend/src/ee/services/pam-resource/pam-resource-dal.ts
index 655880ea58..3ae03f6054 100644
--- a/backend/src/ee/services/pam-resource/pam-resource-dal.ts
+++ b/backend/src/ee/services/pam-resource/pam-resource-dal.ts
@@ -3,13 +3,13 @@ import RE2 from "re2";
import { TDbClient } from "@app/db";
import { TableName } from "@app/db/schemas";
+import { TPamResourceWithFavorite } from "@app/ee/services/pam-resource/pam-resource-types";
import { DatabaseError } from "@app/lib/errors";
import { ormify, selectAllTableCols } from "@app/lib/knex";
import { OrderByDirection } from "@app/lib/types";
import { applyMetadataFilter } from "@app/services/resource-metadata/resource-metadata-fns";
import { PamResourceOrderBy } from "./pam-resource-enums";
-import { TPamResourceWithFavorite } from "./pam-resource-types";
export type TPamResourceDALFactory = ReturnType<typeof pamResourceDALFactory>;
export const pamResourceDALFactory = (db: TDbClient) => {
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 e0a32361c4..31bcbff329 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
@@ -73,7 +73,7 @@ export const syncDependenciesAfterRotation = async ({
formatWinrmUsername
}: TSyncDependenciesParams) => {
const allDeps = await ctx.pamAccountDependenciesDAL.findByAccountId(accountId);
- const enabledDeps = allDeps.filter((d) => d.isEnabled);
+ const enabledDeps = allDeps.filter((d) => d.isRotationSyncEnabled);
if (!enabledDeps.length) return;
const grouped = groupBy(enabledDeps, (d) => d.resourceId);
diff --git a/backend/src/server/routes/index.ts b/backend/src/server/routes/index.ts
index 4184e82244..fc9a15b5d2 100644
--- a/backend/src/server/routes/index.ts
+++ b/backend/src/server/routes/index.ts
@@ -94,9 +94,9 @@ import { pamDiscoverySourceServiceFactory } from "@app/ee/services/pam-discovery
import { pamFolderDALFactory } from "@app/ee/services/pam-folder/pam-folder-dal";
import { pamFolderServiceFactory } from "@app/ee/services/pam-folder/pam-folder-service";
import { pamResourceDALFactory } from "@app/ee/services/pam-resource/pam-resource-dal";
+import { pamResourceFavoriteDALFactory } from "@app/ee/services/pam-resource/pam-resource-favorite-dal";
import { pamResourceRotationRulesDALFactory } from "@app/ee/services/pam-resource/pam-resource-rotation-rules-dal";
import { pamResourceRotationRulesServiceFactory } from "@app/ee/services/pam-resource/pam-resource-rotation-rules-service";
-import { pamResourceFavoriteDALFactory } from "@app/ee/services/pam-resource/pam-resource-favorite-dal";
import { pamResourceServiceFactory } from "@app/ee/services/pam-resource/pam-resource-service";
import { pamSessionDALFactory } from "@app/ee/services/pam-session/pam-session-dal";
import { pamSessionServiceFactory } from "@app/ee/services/pam-session/pam-session-service";
diff --git a/frontend/src/hooks/api/pam/queries.tsx b/frontend/src/hooks/api/pam/queries.tsx
index c4c3f6c0de..56290105dd 100644
--- a/frontend/src/hooks/api/pam/queries.tsx
+++ b/frontend/src/hooks/api/pam/queries.tsx
@@ -10,8 +10,8 @@ import {
TPamAccount,
TPamAccountDependency,
TPamResource,
- TPamRotationRule,
TPamResourceDependency,
+ TPamRotationRule,
TPamSession
} from "./types";