Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: Adjust addRiffCards/removeRiffCards implementation to be asynchronous transaction https://github.com/siyuan-note/siyuan/issues/7936

Liang Ding4a54dcb4af58
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go
index 8135777812..09dc75ae0e 100644
--- a/kernel/model/transaction.go
+++ b/kernel/model/transaction.go
@@ -106,6 +106,8 @@ func flushTx() {
case TxErrCodeBlockNotFound:
util.PushTxErr("Transaction failed", txErr.code, nil)
return
+ case TxErrCodeDataIsSyncing:
+ util.PushErrMsg(Conf.Language(81), 5000)
default:
logging.LogFatalf(logging.ExitCodeFatal, "transaction failed: %s", txErr.msg)
}