2018-07-17 16:50:37 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-05-01 12:39:44 +00:00
|
|
|
module Notes
|
|
|
|
class ResolveService < ::BaseService
|
|
|
|
def execute(note)
|
|
|
|
note.resolve!(current_user)
|
|
|
|
|
2021-05-12 03:10:21 +00:00
|
|
|
::MergeRequests::ResolvedDiscussionNotificationService.new(project: project, current_user: current_user).execute(note.noteable)
|
2018-05-01 12:39:44 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|