Skip to content

Commit

Permalink
Merge pull request #1053 from Accenture/bugfix/1052-if-automations-ar…
Browse files Browse the repository at this point in the history
…e-not-retrieved-due-to-too-many-timeouts-the-overall-retrieve-fails

bugfix/1052 if automations are not retrieved due to too many timeouts the overall retrieve fails
  • Loading branch information
JoernBerkefeld authored Jul 25, 2023
2 parents d705672 + 381270e commit 3492243
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/metadataTypes/Automation.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ class Automation extends MetadataType {
})
)
: [];
let metadataMap = this.parseResponseBody({ items: details });

// * if retrieving some automations fails, a null element would remain in the details-array for each of them that needs to be filtered to prevent it from causing issues elsewhere
let metadataMap = this.parseResponseBody({ items: details.filter(Boolean) });

if (Object.keys(metadataMap).length) {
// attach notification information to each automation that has any
Expand Down

0 comments on commit 3492243

Please sign in to comment.