forked from Silverfish/proton-bridge
feat(GODT-3121): adds KB suggestion scoring.
This commit is contained in:
@ -69,7 +69,7 @@ func NewShowMainWindowEvent() *StreamEvent {
|
||||
func NewRequestKnowledgeBaseSuggestionsEvent(suggestions kb.ArticleList) *StreamEvent {
|
||||
s := xslices.Map(
|
||||
suggestions,
|
||||
func(article kb.Article) *KnowledgeBaseSuggestion {
|
||||
func(article *kb.Article) *KnowledgeBaseSuggestion {
|
||||
return &KnowledgeBaseSuggestion{Url: article.URL, Title: article.Title}
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user