Skip to content

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

Update vault.ts

Daniel Hougaard7f72037d77ff
diff --git a/backend/src/services/external-migration/external-migration-fns/vault.ts b/backend/src/services/external-migration/external-migration-fns/vault.ts
index 197102f820..b512ff11a2 100644
--- a/backend/src/services/external-migration/external-migration-fns/vault.ts
+++ b/backend/src/services/external-migration/external-migration-fns/vault.ts
@@ -17,25 +17,16 @@ type VaultData = {
const vaultFactory = () => {
const getMounts = async (request: AxiosInstance) => {
const response = await request
- .get<
- Record<
- string,
- {
- accessor: string;
- options: {
- version?: string;
- } | null;
- type: string;
- }
- >
- >("/v1/sys/mounts")
+ .get<{
+ data: Record<string, { accessor: string; options: { version?: string } | null; type: string }>;
+ }>("/v1/sys/mounts")
.catch((err) => {
if (axios.isAxiosError(err)) {
logger.error(err.response?.data, "External migration: Failed to get Vault mounts");
}
throw err;
});
- return response.data;
+ return response.data.data;
};
const getPaths = async (