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:
Kyle Brandt 2019-10-11 11:46:44 -04:00 committed by GitHub
parent 60f86c3b9c
commit 2c3c576ca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}