diff --git a/src/v0/destinations/fb_custom_audience/transform.js b/src/v0/destinations/fb_custom_audience/transform.js index 3a1293c43e..f920ebe398 100644 --- a/src/v0/destinations/fb_custom_audience/transform.js +++ b/src/v0/destinations/fb_custom_audience/transform.js @@ -154,7 +154,8 @@ const prepareToSendEvents = ( }); return toSendEvents; }; -const processEvent = (message, destination, connection) => { +const processEvent = (event) => { + const { message, destination, connection } = event; const respList = []; let toSendEvents = []; let { userSchema } = destination.Config; @@ -249,7 +250,7 @@ const processEvent = (message, destination, connection) => { return respList; }; -const process = (event) => processEvent(event.message, event.destination, event.connection); +const process = (event) => processEvent(event); const processRouterDest = async (inputs, reqMetadata) => { const respList = [];