debian-mirror-gitlab/app/services/merge_requests/resolve_todos_service.rb
2021-06-08 01:23:25 +05:30

24 lines
480 B
Ruby

# frozen_string_literal: true
module MergeRequests
class ResolveTodosService
include BaseServiceUtility
def initialize(merge_request, user)
@merge_request = merge_request
@user = user
end
def async_execute
MergeRequests::ResolveTodosWorker.perform_async(merge_request.id, user.id)
end
def execute
todo_service.resolve_todos_for_target(merge_request, user)
end
private
attr_reader :merge_request, :user
end
end