commit: 5cfc9c74872fff63f3ddf81de0baebfd50e2fc72
parent: ac406a31b07e55c624938a6075b2bf40b5ce7001
Author: Eugen Rochko <eugen@zeonfederated.com>
Date: Fri, 17 Mar 2017 21:02:47 +0100
Forgot to hook up API with the latest method
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/controllers/api/v1/accounts_controller.rb b/app/controllers/api/v1/accounts_controller.rb
@@ -115,7 +115,7 @@ class Api::V1::AccountsController < ApiController
end
def search
- @accounts = SearchService.new.call(params[:q], limit_param(DEFAULT_ACCOUNTS_LIMIT), params[:resolve] == 'true')
+ @accounts = SearchService.new.call(params[:q], limit_param(DEFAULT_ACCOUNTS_LIMIT), params[:resolve] == 'true', current_account)
set_account_counters_maps(@accounts) unless @accounts.nil?