diff --git a/lib/metadataTypes/Journey.js b/lib/metadataTypes/Journey.js index 2e18d8225..b2e06dc3b 100644 --- a/lib/metadataTypes/Journey.js +++ b/lib/metadataTypes/Journey.js @@ -2793,12 +2793,16 @@ class Journey extends MetadataType { ) ); - // refresh TriggeredSends - TriggeredSend.buObject = this.buObject; - TriggeredSend.client = this.client; - TriggeredSend.properties = this.properties; - // hard-refresh all triggeredSends even if the TS was paused (inactive) before - await TriggeredSend.refresh(tsKeys, false); + if (tsKeys.length) { + // refresh TriggeredSends + TriggeredSend.buObject = this.buObject; + TriggeredSend.client = this.client; + TriggeredSend.properties = this.properties; + // hard-refresh all triggeredSends even if the TS was paused (inactive) before + await TriggeredSend.refresh(tsKeys, false); + } else { + Util.logger.info(Util.getGrayMsg('No triggeredSends found to refresh')); + } Util.logger.info( `Refreshed ${refreshedKeyArr.length} of ${keyArr.length} ${this.definition.type}`