diff --git a/app/controllers/clients_controller.rb b/app/controllers/clients_controller.rb index 54701fdcb..ac8dbb441 100644 --- a/app/controllers/clients_controller.rb +++ b/app/controllers/clients_controller.rb @@ -155,8 +155,6 @@ def destroy end def totals - return [] unless params[:provider_id].present? - page = { size: 0, number: 1 } state = current_user.present? && current_user.is_admin_or_staff? && params[:state].present? ? params[:state] : "registered,findable" response = Doi.query(nil, provider_id: params[:provider_id], state: state, page: page, totals_agg: "client") diff --git a/app/controllers/prefixes_controller.rb b/app/controllers/prefixes_controller.rb index ac668df83..d856922cd 100644 --- a/app/controllers/prefixes_controller.rb +++ b/app/controllers/prefixes_controller.rb @@ -136,8 +136,6 @@ def update end def totals - return [] unless params[:client_id].present? - page = { size: 0, number: 1} response = Doi.query(nil, client_id: params[:client_id], state: "findable,registered", page: page, totals_agg: "prefix") registrant = prefixes_totals(response.response.aggregations.prefixes_totals.buckets)