From dfda8b7e77835fc54d469eda336b13b415365703 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 18 Mar 2021 15:09:04 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- lib/gitlab/updated_notes_paginator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab/updated_notes_paginator.rb') diff --git a/lib/gitlab/updated_notes_paginator.rb b/lib/gitlab/updated_notes_paginator.rb index 511d6dccf7c..d5c01bde6b3 100644 --- a/lib/gitlab/updated_notes_paginator.rb +++ b/lib/gitlab/updated_notes_paginator.rb @@ -37,7 +37,7 @@ module Gitlab end def fetch_page(relation) - relation = relation.by_updated_at + relation = relation.order_updated_asc.with_order_id_asc notes = relation.limit(LIMIT + 1).to_a return [notes, false] unless notes.size > LIMIT -- cgit v1.2.3