Skip to content

Commit

Permalink
#0: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Aug 3, 2023
1 parent 8fb8fe9 commit 61fc8fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/metadataTypes/Automation.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,12 +495,12 @@ class Automation extends MetadataType {
// schedule
const results = await this.retrieve(undefined, undefined, undefined, key);
if (Object.keys(results.metadata).length) {
for (const key of Object.keys(results.metadata)) {
if (this.#isValidSchedule(results.metadata[key])) {
metadataMap[key] = results.metadata[key];
for (const resultKey of Object.keys(results.metadata)) {
if (this.#isValidSchedule(results.metadata[resultKey])) {
metadataMap[resultKey] = results.metadata[resultKey];
} else {
Util.logger.error(
` - skipping ${this.definition.type} ${results.metadata[key].name}: no valid schedule settings found.`
` - skipping ${this.definition.type} ${results.metadata[resultKey].name}: no valid schedule settings found.`
);
}
}
Expand Down

0 comments on commit 61fc8fb

Please sign in to comment.