Skip to content

Commit

Permalink
#1807: fix de-event comparison for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Nov 9, 2024
1 parent 36b8bb8 commit e70de4b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/metadataTypes/Event.js
Original file line number Diff line number Diff line change
Expand Up @@ -1099,11 +1099,17 @@ class Event extends MetadataType {
return;
}

eventDataSummary =
'string' === typeof eventDataSummary
? // @ts-expect-error transforming this from API-string-format to from mcdev-format
eventDataSummary.split('; ').filter(Boolean).sort()
: eventDataSummary;

const errors = [];
for (const fieldName of eventDataSummary) {
if (!deItem.Fields.find((field) => field.Name === fieldName)) {
errors.push(
`Field ${fieldName} is was not found in associated dataExtension ${deKey}`
`Field ${fieldName} was not found in associated dataExtension ${deKey}`
);
}
}
Expand Down

0 comments on commit e70de4b

Please sign in to comment.