Address CodeRabbit: query all memberships instead of findFirst so a handler that preserves the existing row but adds a membership is caught.
Address CodeRabbit: query all memberships instead of findFirst so a handler that preserves the existing row but adds a membership is caught.