Commit 2c3c576c by Kyle Brandt Committed by GitHub

fix: export Bus on search service (#19773)

fix pkg/services/search/service.go:52:3: s.bus undefined (type *SearchService has no field or method bus, but does have Bus)

fixes issue introduced by #19765
parent 60f86c3b
......@@ -45,11 +45,11 @@ type FindPersistedDashboardsQuery struct {
}
type SearchService struct {
bus bus.Bus `inject:""`
Bus bus.Bus `inject:""`
}
func (s *SearchService) Init() error {
s.bus.AddHandler(s.searchHandler)
s.Bus.AddHandler(s.searchHandler)
return nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment