Skip to content

Commit

Permalink
[api] just fetch issues for the affected issue tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Feb 26, 2015
1 parent b53226c commit 3b3bba4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/api/app/models/issue.rb
Expand Up @@ -68,9 +68,7 @@ def self.bugzilla_state( string )
after_create :fetch_issues
def fetch_issues
# inject update jobs after issue got created
IssueTracker.all.each do |t|
t.delay(queue: 'issuetracking').fetch_issues
end
self.issue_tracker.delay(queue: 'issuetracking').fetch_issues
end

def fetch_updates
Expand Down

0 comments on commit 3b3bba4

Please sign in to comment.