Skip to content

A platform for community discussion. Free, open, simple.

fix the build

Arpit Jalane04fb9a877dc
diff --git a/app/controllers/admin/search_logs_controller.rb b/app/controllers/admin/search_logs_controller.rb
index bdbfc8f54ec..280121e9c86 100644
--- a/app/controllers/admin/search_logs_controller.rb
+++ b/app/controllers/admin/search_logs_controller.rb
@@ -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
diff --git a/spec/components/search_spec.rb b/spec/components/search_spec.rb
index 436fabbc238..3f2228a990f 100644
--- a/spec/components/search_spec.rb
+++ b/spec/components/search_spec.rb
@@ -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