Commit bdae5306 authored by George Tsiolis's avatar George Tsiolis

Add hard coded event type filter

parent c2f180e7
...@@ -33,7 +33,7 @@ class EventFilter ...@@ -33,7 +33,7 @@ class EventFilter
when TEAM when TEAM
events.where(action: [Event::JOINED, Event::LEFT, Event::EXPIRED]) events.where(action: [Event::JOINED, Event::LEFT, Event::EXPIRED])
when ISSUE when ISSUE
events.where(action: [Event::CREATED, Event::UPDATED, Event::CLOSED, Event::REOPENED], target_type: @filter.capitalize) events.where(action: [Event::CREATED, Event::UPDATED, Event::CLOSED, Event::REOPENED], target_type: 'Issue')
else else
events events
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment