Merge pull request #3477 from Infisical/native-integration-deleted-import-fix

Fix: Filter Out Deleted Imports with Replication
This commit is contained in:
Scott Wilson
2025-04-23 17:22:04 -07:00
committed by GitHub

View File

@@ -207,7 +207,10 @@ export const fnSecretsV2FromImports = async ({
);
if (!importedFolders.length) continue;
const importedFolderIds = importedFolders.map((el) => el?.id) as string[];
const importedFolderIds = importedFolders.filter(Boolean).map((el) => el?.id) as string[];
if (!importedFolderIds.length) continue;
const importedFolderGroupBySourceImport = groupBy(importedFolders, (i) => `${i?.envId}-${i?.path}`);
const importedSecrets = await secretDAL.find(