Browse Source

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

Daniel 2 years ago
parent
commit
c8cfe190fa
1 changed files with 1 additions and 2 deletions
  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
 	// 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) {
 func execOp(op *dbQueueOperation, tx *sql.Tx, context map[string]interface{}) (err error) {