This commit is contained in:
Daniel 2025-02-04 17:23:57 +08:00
parent aa43b29a4f
commit db86447f00
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -154,9 +154,8 @@ func refreshRefCount(rootID, blockID string) {
isDoc := bt.ID == bt.RootID
var rootRefIDs []string
var refCount, rootRefCount int
var refIDs []string
refIDs := sql.QueryRefIDsByDefID(bt.ID, isDoc)
if isDoc {
refIDs = sql.QueryRefIDsByDefID(bt.ID, isDoc)
rootRefIDs = refIDs
} else {
rootRefIDs = sql.QueryRefIDsByDefID(bt.RootID, true)