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

10 lines
238 B
Ruby
Raw Normal View History

2018-10-15 14:42:47 +05:30
module Notes
class ResolveService < ::BaseService
def execute(note)
note.resolve!(current_user)
::MergeRequests::ResolvedDiscussionNotificationService.new(project, current_user).execute(note.noteable)
end
end
end