Skip to content

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

fix: nit and type check

Daniel Hougaard410edb56376c
diff --git a/backend/src/services/secret-v2-bridge/secret-v2-bridge-fns.ts b/backend/src/services/secret-v2-bridge/secret-v2-bridge-fns.ts
index 1435e21bb2..d38eccafd8 100644
--- a/backend/src/services/secret-v2-bridge/secret-v2-bridge-fns.ts
+++ b/backend/src/services/secret-v2-bridge/secret-v2-bridge-fns.ts
@@ -877,7 +877,7 @@ export const fnUpdateMovedSecretReferences = async ({
const updatedSecretsMap: Map<string, { secret: TSecretsV2; newEncryptedValue: Buffer; newVersion: number }> =
new Map();
- const destPathPart = destinationSecretPath === "/" ? "" : `.${destinationSecretPath.slice(1).replace(/\//g, ".")}`;
+ const destPathPart = destinationSecretPath === "/" ? "" : `.${destinationSecretPath.slice(1).replaceAll("/", ".")}`;
const newNestedRef = `\${${destinationEnvironment}${destPathPart}.${secretKey}}`;
// case: local references, not stored in the db, we need to scan the folder to find secrets that reference the old secret ky
diff --git a/frontend/src/pages/pam/PamResourcesPage/route.tsx b/frontend/src/pages/pam/PamResourcesPage/route.tsx
index e53db59348..2889c165c0 100644
--- a/frontend/src/pages/pam/PamResourcesPage/route.tsx
+++ b/frontend/src/pages/pam/PamResourcesPage/route.tsx
@@ -1,26 +1,26 @@
-import { createFileRoute } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { PamResourcesPage } from './PamResourcesPage'
+import { PamResourcesPage } from "./PamResourcesPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/',
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/"
)({
validateSearch: zodValidator(
z.object({
- search: z.string().optional(),
- }),
+ search: z.string().optional()
+ })
),
beforeLoad: ({ context }) => {
return {
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Resources',
- },
- ],
- }
+ label: "Resources"
+ }
+ ]
+ };
},
- component: PamResourcesPage,
-})
+ component: PamResourcesPage
+});