Skip to content

Commit

Permalink
fix索引切换使用应用切换
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyun8023 committed Aug 22, 2024
1 parent d90e890 commit 48937a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/calibre/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,9 @@ func (c Api) updateIndex(c2 *gin.Context) {
}
index := c.currentIndex()
if c.useIndex == c.config.Search.Index {
index = c.client.Index(c.config.Search.Index)
} else {
index = c.client.Index(c.config.Search.Index + "-bak")
} else {
index = c.client.Index(c.config.Search.Index)
}
_, err := index.DeleteAllDocuments()
if err != nil {
Expand Down

0 comments on commit 48937a7

Please sign in to comment.