浏览代码

fix: roam export error caused by typo

Junyi Du 3 年之前
父节点
当前提交
b1ce56c556
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/main/frontend/external/roam_export.cljs

+ 4 - 4
src/main/frontend/external/roam_export.cljs

@@ -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)]))