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