mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
fix the build
This commit is contained in:
parent
19b36a2d60
commit
e04fb9a877
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ class Admin::SearchLogsController < Admin::AdminController
|
||||||
details = SearchLog.term_details(term, period&.to_sym, search_type&.to_sym)
|
details = SearchLog.term_details(term, period&.to_sym, search_type&.to_sym)
|
||||||
raise Discourse::NotFound if details.blank?
|
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)
|
details[:search_result] = serialize_data(result, GroupedSearchResultSerializer, result: result)
|
||||||
render_json_dump(term: details)
|
render_json_dump(term: details)
|
||||||
end
|
end
|
||||||
|
|
|
@ -917,7 +917,7 @@ describe Search do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "does not log search if search_type is not present" do
|
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
|
results = s.execute
|
||||||
expect(results.search_log_id).not_to be_present
|
expect(results.search_log_id).not_to be_present
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue