summaryrefslogtreecommitdiff
path: root/app/finders/alert_management/http_integrations_finder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/finders/alert_management/http_integrations_finder.rb')
-rw-r--r--app/finders/alert_management/http_integrations_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/alert_management/http_integrations_finder.rb b/app/finders/alert_management/http_integrations_finder.rb
index 9f511be0ace..5d4c9b6fbe3 100644
--- a/app/finders/alert_management/http_integrations_finder.rb
+++ b/app/finders/alert_management/http_integrations_finder.rb
@@ -27,7 +27,7 @@ module AlertManagement
first_id = project.alert_management_http_integrations
.ordered_by_id
.select(:id)
- .at_most(1)
+ .limit(1)
@collection = collection.id_in(first_id)
end