Skip to content
Snippets Groups Projects
Commit 9b115ce4 authored by Douwe Maan's avatar Douwe Maan
Browse files

Actually don't send resolved notifications when deleting a note

parent a3a67209
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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: {
Loading
Loading
Loading
Loading
@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment