mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix: db changes doesn't create rtc ops
This commit is contained in:
@@ -158,8 +158,9 @@
|
||||
blocks* (replace-db-id-with-temp-id blocks)
|
||||
blocks-with-page-id (fill-block-fields blocks*)
|
||||
tx-data (concat blocks-with-page-id
|
||||
[{:db/ident :logseq.kv/graph-uuid :graph/uuid graph-uuid}])
|
||||
[{:db/ident :logseq.kv/graph-uuid :graph/uuid graph-uuid}])
|
||||
^js worker-obj (:worker/object @worker-state/*state)
|
||||
_ (op-mem-layer/update-local-tx! repo t)
|
||||
work (p/do!
|
||||
(.createOrOpenDB worker-obj repo {:close-other-db? false})
|
||||
(.exportDB worker-obj repo)
|
||||
@@ -167,8 +168,7 @@
|
||||
(transact-block-refs! repo))]
|
||||
(<? (p->c work))
|
||||
|
||||
(worker-util/post-message :add-repo {:repo repo})
|
||||
(op-mem-layer/update-local-tx! repo t))))
|
||||
(worker-util/post-message :add-repo {:repo repo}))))
|
||||
|
||||
(defn <download-graph
|
||||
[state repo graph-uuid]
|
||||
|
||||
Reference in New Issue
Block a user