From fb2fe285f1a49c307de790aa356c700d4d504635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergei=20Ts=C3=B5ganov?= Date: Fri, 16 Sep 2022 10:57:52 +0300 Subject: [PATCH] Removed 200 limit of records if nil --- app/controllers/repp/v1/accounts_controller.rb | 2 +- app/controllers/repp/v1/contacts_controller.rb | 2 +- app/controllers/repp/v1/domains_controller.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/repp/v1/accounts_controller.rb b/app/controllers/repp/v1/accounts_controller.rb index 0bd75a3027..8395db42c2 100644 --- a/app/controllers/repp/v1/accounts_controller.rb +++ b/app/controllers/repp/v1/accounts_controller.rb @@ -132,7 +132,7 @@ def search_params end def limit - index_params[:limit] || 200 + index_params[:limit] end def offset diff --git a/app/controllers/repp/v1/contacts_controller.rb b/app/controllers/repp/v1/contacts_controller.rb index 6f5e79a64d..5d8f20ee01 100644 --- a/app/controllers/repp/v1/contacts_controller.rb +++ b/app/controllers/repp/v1/contacts_controller.rb @@ -147,7 +147,7 @@ def hashify(sort) end def limit - index_params[:limit] || 200 + index_params[:limit] end def offset diff --git a/app/controllers/repp/v1/domains_controller.rb b/app/controllers/repp/v1/domains_controller.rb index 05f1e2c954..6990b0a863 100644 --- a/app/controllers/repp/v1/domains_controller.rb +++ b/app/controllers/repp/v1/domains_controller.rb @@ -229,7 +229,7 @@ def domain_from_url_hash end def limit - index_params[:limit] || 200 + index_params[:limit] end def offset