mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user