Skip to content

Commit

Permalink
#1943: skip postDeployTasks if no journeys were deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Jan 13, 2025
1 parent f9976e9 commit 50d007b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/metadataTypes/Journey.js
Original file line number Diff line number Diff line change
Expand Up @@ -1842,6 +1842,10 @@ class Journey extends MetadataType {
* @param {MetadataTypeMap} upsertResults metadata mapped by their keyField as returned by update/create
*/
static async postDeployTasks(upsertResults) {
if (!upsertResults || !Object.keys(upsertResults).length) {
// nothing to do. skip here to avoid unnecessary logs / api calls
return;
}
let postDeployFlags = 0;
if (Util.OPTIONS.publish) {
postDeployFlags++;
Expand Down

0 comments on commit 50d007b

Please sign in to comment.