fix(search): duplicate folder on autoupdate (#6063 close #6062)

* fix(search): the problem of not returning in time when index does not support auto update.

* fix(search): the problem of duplicate indexing of folders.
This commit is contained in:
不插电
2024-02-20 19:12:07 +08:00
committed by GitHub
parent 47f4b05517
commit 53926d5cd0
2 changed files with 10 additions and 8 deletions

View File

@ -51,6 +51,7 @@ func UpdateIndex(c *gin.Context) {
}
if !search.Config(c).AutoUpdate {
common.ErrorStrResp(c, "update is not supported for current index", 400)
return
}
go func() {
ctx := context.Background()