Forgot to hook up API with the latest method

pull/676/head
Eugen Rochko 2017-03-17 21:02:47 +01:00
parent ac406a31b0
commit 5cfc9c7487
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class Api::V1::AccountsController < ApiController
end end
def search 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? set_account_counters_maps(@accounts) unless @accounts.nil?