Skip to content
Snippets Groups Projects
Commit a6e17cf5 authored by Paco Guzman's avatar Paco Guzman
Browse files

Use SELECT 1, instead SELECT COUNT(*) to ask for notes existency

parent 4ff345c4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -347,7 +347,7 @@ module SystemNoteService
notes = notes.where(noteable_id: noteable.id)
end
 
notes_for_mentioner(mentioner, noteable, notes).count > 0
notes_for_mentioner(mentioner, noteable, notes).exists?
end
 
# Build an Array of lines detailing each commit added in a merge request
Loading
Loading
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