debian-mirror-gitlab/app/services/notes/resolve_service.rb

12 lines
292 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2018-10-15 14:42:47 +05:30
module Notes
class ResolveService < ::BaseService
def execute(note)
note.resolve!(current_user)
2021-06-08 01:23:25 +05:30
::MergeRequests::ResolvedDiscussionNotificationService.new(project: project, current_user: current_user).execute(note.noteable)
2018-10-15 14:42:47 +05:30
end
end
end