mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:47:22 +08:00
fix the build
This commit is contained in:
parent
19b36a2d60
commit
e04fb9a877
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user