Update external-migration-fns.ts

This commit is contained in:
Daniel Hougaard
2024-10-16 01:58:06 +04:00
parent d61f36bca8
commit 5d5da97b45

View File

@@ -89,13 +89,6 @@ export const parseEnvKeyDataFn = async (decryptedJson: string): Promise<Infisica
});
}
// make sure that all the projectIds in the enviroments are present in the projects
for (const env of infisicalImportData.environments) {
if (!infisicalImportData.projects.find((project) => project.id === env.projectId)) {
infisicalImportData.projects.push({ name: "Unknown", id: env.projectId });
}
}
// secrets
for (const env of Object.keys(parsedJson.envs)) {
if (!env.includes("|")) {