fix the build

This commit is contained in:
Arpit Jalan 2018-01-17 12:57:33 +05:30
parent 19b36a2d60
commit e04fb9a877
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ class Admin::SearchLogsController < Admin::AdminController
details = SearchLog.term_details(term, period&.to_sym, search_type&.to_sym)
raise Discourse::NotFound if details.blank?
result = Search.execute(params[:term], { guardian: guardian })
result = Search.execute(params[:term], guardian: guardian)
details[:search_result] = serialize_data(result, GroupedSearchResultSerializer, result: result)
render_json_dump(term: details)
end

View File

@ -917,7 +917,7 @@ describe Search do
end
it "does not log search if search_type is not present" do
s = Search.new('foo bar',ip_address: '127.0.0.1')
s = Search.new('foo bar', ip_address: '127.0.0.1')
results = s.execute
expect(results.search_log_id).not_to be_present
end