فهرست منبع

:art: Push database index commit event https://github.com/siyuan-note/siyuan/issues/8814

Daniel 2 سال پیش
والد
کامیت
c8cfe190fa
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      kernel/sql/queue.go

+ 1 - 2
kernel/sql/queue.go

@@ -153,8 +153,7 @@ func FlushQueue() {
 	}
 
 	// Push database index commit event https://github.com/siyuan-note/siyuan/issues/8814
-	evt := util.NewCmdResult("databaseIndexCommit", 0, util.PushModeBroadcast)
-	util.PushEvent(evt)
+	util.BroadcastByType("main", "databaseIndexCommit", 0, "", nil)
 }
 
 func execOp(op *dbQueueOperation, tx *sql.Tx, context map[string]interface{}) (err error) {