fix: wrong argument

This commit is contained in:
Tienson Qin
2024-01-09 14:09:12 +08:00
parent dd3a4b122c
commit 879ae09fa2
2 changed files with 1 additions and 2 deletions

View File

@@ -115,7 +115,7 @@
(let [properties (:block/properties block)
type (pu/lookup properties :logseq.order-list-type)]
(= type order-list-type)))
prev-block-fn #(some->> (:db/id %) (db-model/get-prev-sibling (state/get-current-repo)))
prev-block-fn #(some->> (:db/id %) (db-model/get-prev-sibling (db/get-db)))
prev-block (prev-block-fn block)]
(letfn [(page-fn? [b] (some-> b :block/name some?))
(order-sibling-list [b]

View File

@@ -76,7 +76,6 @@
(ldb/register-transact-fn!
(fn worker-transact!
[_conn tx-data tx-meta]
(prn :debug :transact :tx-meta tx-meta :tx-data tx-data)
(transact! wrapped-worker (state/get-current-repo) tx-data
;; not from remote(rtc)
(assoc tx-meta :local-tx? true)))))