Actually don't send resolved notifications when deleting a note
This commit is contained in:
parent
a3a672095d
commit
9b115ce4d3
2 changed files with 2 additions and 4 deletions
|
@ -72,6 +72,8 @@ class Projects::NotesController < Projects::ApplicationController
|
|||
|
||||
note.resolve!(current_user)
|
||||
|
||||
MergeRequests::AllDiscussionsResolvedService.new(project, current_user).execute(note.noteable)
|
||||
|
||||
discussion = note.discussion
|
||||
|
||||
render json: {
|
||||
|
|
|
@ -3,10 +3,6 @@ module Notes
|
|||
def execute(note)
|
||||
note.destroy
|
||||
note.reset_events_cache
|
||||
|
||||
if note.resolvable?
|
||||
MergeRequests::AllDiscussionsResolvedService.new(project, current_user).execute(note.noteable)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue