mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-10-13 19:21:08 +02:00
fix: 修复 KnowledgeHandler 方法调用错误
- 将 app.go 中的 RebuildIndex 调用改为 StartIndex - 该方法在最近提交中已重命名,但调用点未同步更新 - 修复编译错误: app.knowledgeHandler.RebuildIndex undefined
This commit is contained in:
1 parent
62fafbf09b
commit
461682acaf
1 file changed
+1
-1
+1
-1
@@ -1071,7 +1071,7 @@ func setupRoutes(
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
app.knowledgeHandler.RebuildIndex(c)
|
app.knowledgeHandler.StartIndex(c)
|
||||||
})
|
})
|
||||||
knowledgeRoutes.POST("/scan", func(c *gin.Context) {
|
knowledgeRoutes.POST("/scan", func(c *gin.Context) {
|
||||||
if app.knowledgeHandler == nil {
|
if app.knowledgeHandler == nil {
|
||||||
|
|||||||
Reference in new issue
Block a user