app/services/api/to_active_sessions_json.rb
Method build_json_output
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def build_json_output(anonymous = false)
sessions = formatted_sessions
streams = Stream.where(session_id: sessions.pluck('sessions.id'))
selected_sensor_streams =
streams.select do |stream|