PIT: Add delete commit for cascade deletion

This commit is contained in:
carlosmonastyrski
2025-05-26 21:51:43 -03:00
parent f3a84f6001
commit d36d0784ca
6 changed files with 130 additions and 7 deletions
@@ -415,6 +415,7 @@ export const secretSnapshotServiceFactory = ({
secretVersionId?: string;
folderVersionId?: string;
isUpdate?: boolean;
folderId?: string;
}[] = [];
// this will remove all secrets in current folder except rotated secrets which we ignore
@@ -625,7 +626,8 @@ export const secretSnapshotServiceFactory = ({
// Folder was only deleted
commitChanges.push({
type: CommitType.DELETE,
folderVersionId: deletedInfo.versionId
folderVersionId: deletedInfo.versionId,
folderId: deletedInfo.id
});
}
});