From 48937a769269fd0aec17e8ad9792e0e5b59dc2af Mon Sep 17 00:00:00 2001 From: Jianyun Date: Thu, 22 Aug 2024 11:40:44 +0800 Subject: [PATCH] =?UTF-8?q?fix=E7=B4=A2=E5=BC=95=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=BA=94=E7=94=A8=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/calibre/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/calibre/api.go b/internal/calibre/api.go index 411f711..2b5d4ef 100644 --- a/internal/calibre/api.go +++ b/internal/calibre/api.go @@ -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 {