fix: roam export error caused by typo

This commit is contained in:
Junyi Du
2022-08-15 01:08:50 +08:00
committed by Tienson Qin
parent 6f2a80a3e4
commit b1ce56c556

View File

@@ -23,10 +23,10 @@
(defn uuid->uid-map []
(let [db (db/get-db (state/get-current-repo))]
(->>
(d/q db '[:find (pull ?r [:block/uuid])
:in $
:where
[?b :block/refs ?r]])
(d/q '[:find (pull ?r [:block/uuid])
:in $
:where
[?b :block/refs ?r]] db)
(map (comp :block/uuid first))
(distinct)
(map (fn [uuid] [uuid (nano-id)]))