thankful-gpu-70135
07/27/2023, 6:04 AMdestinationType?millions-activity-52391
07/27/2023, 6:04 AMquiet-wolf-72320
07/27/2023, 12:33 PMthankful-gpu-70135
07/30/2023, 6:57 AMconst META = metadata(event);
const DESTINATION = META.destinationType.toLowerCase();
if ( DESTINATION == "foo") {
...
} else if (DESTINATION == "bar") {
....
}
The docs should clarify this use case and advice on how you'd use event metadata in other ways (e..g based on source type, etc).