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

11 lines
292 B
Ruby

# frozen_string_literal: true
module Notes
class ResolveService < ::BaseService
def execute(note)
note.resolve!(current_user)
::MergeRequests::ResolvedDiscussionNotificationService.new(project: project, current_user: current_user).execute(note.noteable)
end
end
end