* 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:
@ -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()
|
||||
|
Reference in New Issue
Block a user