Skip to content

Commit

Permalink
chore: updated mapped schema parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepdsvs committed Sep 6, 2024
1 parent 9589ab7 commit a5dfc8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v0/destinations/fb_custom_audience/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ const getSchemaForEventMappedToDest = (message) => {
};

const getSchemaForEventMappedToDestForVDMv2 = (message) => {
const mappedSchema = message.fields;
const mappedSchema = message?.identifierMappings;
if (!mappedSchema) {
throw new InstrumentationError(
'event.fields is required property for events mapped to destination ',
'event.identifierMappings is required property for events mapped to destination ',
);
}
let userSchema = Object.keys(mappedSchema);
Expand Down

0 comments on commit a5dfc8f

Please sign in to comment.