Reporting.data.created webhook flattening metrics array on Express listener

Problem
GC sits at 2025-03.120.0. Node 18.17.0 throws a TypeError every time the batch processor hits the route. The reporting.data.created webhook’s been firing with a completely flattened metrics array, and the Express middleware’s choking on the missing interval property.

{
 "event": "reporting.data.created",
 "data": {
 "reportId": "rep_884291",
 "metrics": []
 }
}

TypeError: Cannot read properties of undefined (reading ‘interval’)
at parseReportingPayload (/app/middleware/reporting.js:42:14)
at Layer.handle (/node_modules/express/lib/router/route.js:152:15)

The metrics array flattens because the webhook payload structure changed in recent patches. You need to map the flat properties back into the interval object manually before your middleware processes it.