summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Tsiolis <tsiolis.g@gmail.com>2019-03-06 17:22:45 +0200
committerGeorge Tsiolis <tsiolis.g@gmail.com>2019-03-07 12:13:34 +0200
commitbdae53060354c8ea525b8c9c5202d6097ee4dcc3 (patch)
treeeef5e16bf7aa60c74edb854999132c00db6bf1cd
parentc2f180e72fff44516302ebb10f8b0a357463096b (diff)
downloadgitlab-ce-bdae53060354c8ea525b8c9c5202d6097ee4dcc3.tar.gz
Add hard coded event type filter
-rw-r--r--lib/event_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/event_filter.rb b/lib/event_filter.rb
index 415e430a0c9..85bf9c14f26 100644
--- a/lib/event_filter.rb
+++ b/lib/event_filter.rb
@@ -33,7 +33,7 @@ class EventFilter
when TEAM
events.where(action: [Event::JOINED, Event::LEFT, Event::EXPIRED])
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
events
end