Actually don't send resolved notifications when deleting a note

This commit is contained in:
Douwe Maan 2016-08-03 17:16:37 -07:00
parent a3a672095d
commit 9b115ce4d3
2 changed files with 2 additions and 4 deletions

View File

@ -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: {

View File

@ -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