refactor: prefer conn than repo for outliner core and rtc update

This commit is contained in:
Tienson Qin
2025-12-26 00:05:43 +08:00
parent f6188b6cca
commit 7d719623a1
23 changed files with 230 additions and 414 deletions

View File

@@ -32,11 +32,7 @@
[conn ops opts]
(when (seq ops)
(if util/node-test?
(outliner-op/apply-ops! (state/get-current-repo)
conn
ops
(state/get-date-formatter)
opts)
(outliner-op/apply-ops! conn ops opts)
(let [opts' (assoc opts
:client-id (:client-id @state/state)
:local-tx? true)