浏览代码

fix: outliner test broken by #11433

Also fix lint
Gabriel Horner 1 年之前
父节点
当前提交
37cbdf7f47
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 3 1
      deps/outliner/test/logseq/outliner/pipeline_test.cljs
  2. 0 1
      src/main/frontend/db/restore.cljs

+ 3 - 1
deps/outliner/test/logseq/outliner/pipeline_test.cljs

@@ -11,7 +11,9 @@
 (defn- get-blocks [db]
   (->> (d/q '[:find (pull ?b [* {:block/path-refs [:block/name :db/id]}])
               :in $
-              :where [?b :block/title] [(missing? $ ?b :logseq.property/built-in?)]]
+              :where [?b :block/title]
+              [(missing? $ ?b :logseq.property/built-in?)]
+              [(missing? $ ?b :block/type)]]
             db)
        (map first)))
 

+ 0 - 1
src/main/frontend/db/restore.cljs

@@ -1,7 +1,6 @@
 (ns frontend.db.restore
   "Fns for DB restore(from text or sqlite)"
   (:require [frontend.db.conn :as db-conn]
-            [frontend.db.react :as react]
             [frontend.state :as state]
             [frontend.persist-db :as persist-db]
             [promesa.core :as p]