fix: distinct resource events

Bengfort requested to merge fix-resource-events-distinct into main

The join in the query causes the events to exist multiple times (once for each session)

Merge request reports