From b052644d2e06113f1ac685ff2263168f6827fedb Mon Sep 17 00:00:00 2001 From: Lumb Date: Thu, 20 Jun 2019 09:43:14 +0000 Subject: add search env to controller file Add variable to controller file for search results --- app/controllers/api/v1/search_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/api/v1') diff --git a/app/controllers/api/v1/search_controller.rb b/app/controllers/api/v1/search_controller.rb index 639e71493..c62ca15c6 100644 --- a/app/controllers/api/v1/search_controller.rb +++ b/app/controllers/api/v1/search_controller.rb @@ -3,7 +3,7 @@ class Api::V1::SearchController < Api::BaseController include Authorization - RESULTS_LIMIT = 100 + RESULTS_LIMIT = (ENV['MAX_SEARCH_RESULTS'] || 100).to_i before_action -> { doorkeeper_authorize! :read, :'read:search' } before_action :require_user! -- cgit