mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
refactor: compute pipeline tx-data before d/transact!
This commit is contained in:
3
deps/graph-parser/script/db_import.cljs
vendored
3
deps/graph-parser/script/db_import.cljs
vendored
@@ -95,8 +95,7 @@
|
||||
(println (some-> (get-in m [:ex-data :error]) .-stack)))
|
||||
(when debug
|
||||
(when-let [matching-tx (seq (filter #(and (get-in m [:ex-data :path])
|
||||
(or (= (get-in % [:tx-meta ::gp-exporter/path]) (get-in m [:ex-data :path]))
|
||||
(= (get-in % [:tx-meta ::outliner-pipeline/original-tx-meta ::gp-exporter/path]) (get-in m [:ex-data :path]))))
|
||||
(= (get-in % [:tx-meta ::gp-exporter/path]) (get-in m [:ex-data :path])))
|
||||
@tx-queue))]
|
||||
(println (str "\n" (count matching-tx)) "Tx Maps for failing path:")
|
||||
(pprint/pprint matching-tx))))
|
||||
|
||||
Reference in New Issue
Block a user