Skip to content

Commit

Permalink
hardis:org:monitoring:backup : fix issue when metaata is unknown (#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam authored Sep 25, 2024
1 parent 99bf499 commit efc6602
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

Note: Can be used with `sfdx plugins:install sfdx-hardis@beta` and docker image `hardisgroupcom/sfdx-hardis@beta`

## [5.0.7] 2024-09-25

- hardis:org:monitoring:backup : fix issue when metadata type is unknown

## [5.0.6] 2024-09-25

- Allow to purge flows & flow interviews using `--no-prompt` option
Expand Down
3 changes: 2 additions & 1 deletion src/common/metadata-utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,8 @@ Issue tracking: https://github.com/forcedotcom/cli/issues/2426`)
let fileHuman = "" + file;
for (const metadataDesc of metadataList) {
if (file.includes(metadataDesc.directoryName || "THEREISNOT")) {
const endOfPath = file.split(metadataDesc.directoryName + "/")[1];
const splits = file.split(metadataDesc.directoryName + "/");
const endOfPath = splits[1] || splits[0] || "";
const suffix = metadataDesc.suffix ?? "THEREISNOT";
let metadataName = endOfPath.includes("." + suffix + "-meta.xml") ?
endOfPath.replace("." + suffix + "-meta.xml", "") :
Expand Down

0 comments on commit efc6602

Please sign in to comment.