Fix the messages/{id}/events/hourly and messages/{id}/events/daily routes.