mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 14:28:20 +00:00
fix: review comments
This commit is contained in:
@@ -421,12 +421,11 @@ export const fnSecretBulkDelete = async ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const changes = deletedSecrets
|
const changes = deletedSecrets
|
||||||
.filter(({ type }) => type === SecretType.Shared)
|
.filter(({ type, id }) => type === SecretType.Shared && secretVersions[id])
|
||||||
.map(({ id }) => ({
|
.map(({ id }) => ({
|
||||||
type: CommitType.DELETE,
|
type: CommitType.DELETE,
|
||||||
secretVersionId: secretVersions[id]?.id
|
secretVersionId: secretVersions[id]?.id
|
||||||
}))
|
}));
|
||||||
.filter((el) => el.secretVersionId);
|
|
||||||
|
|
||||||
if (changes.length > 0) {
|
if (changes.length > 0) {
|
||||||
if (commitChanges) {
|
if (commitChanges) {
|
||||||
|
|||||||
Reference in New Issue
Block a user