new_issue_worker.rb 358 Bytes
Newer Older
1
class NewIssueWorker
2
  include ApplicationWorker
3 4 5
  include NewIssuable

  def perform(issue_id, user_id)
6
    return unless objects_found?(issue_id, user_id)
7 8 9 10 11 12 13 14 15 16

    EventCreateService.new.open_issue(issuable, user)
    NotificationService.new.new_issue(issuable, user)
    issuable.create_cross_references!(user)
  end

  def issuable_class
    Issue
  end
end