mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-03 14:11:47 +01:00
🎨 Improve getBlockInfo for reindexing https://github.com/siyuan-note/siyuan/issues/10772
This commit is contained in:
parent
b6b0cf2e2c
commit
844fa8ef64
2 changed files with 24 additions and 2 deletions
|
|
@ -465,7 +465,8 @@ func getBlockInfo(c *gin.Context) {
|
|||
|
||||
id := arg["id"].(string)
|
||||
|
||||
tree, err := model.LoadTreeByBlockID(id)
|
||||
// 仅在此处使用带重建索引的加载函数,其他地方不要使用
|
||||
tree, err := model.LoadTreeByBlockIDWithReindex(id)
|
||||
if errors.Is(err, model.ErrIndexing) {
|
||||
ret.Code = 3
|
||||
ret.Msg = model.Conf.Language(56)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue