fix: frontend and graph-parser tests and lints

Removed file specific test
This commit is contained in:
Gabriel Horner
2025-12-30 22:10:27 -05:00
parent 2bcc331916
commit 20cbb626a0
4 changed files with 9 additions and 18 deletions

View File

@@ -10,6 +10,7 @@
[frontend.util.text :as text-util]
[logseq.common.util :as common-util]
[logseq.db :as ldb]
[logseq.db.file-based.schema :as file-schema]
[logseq.db.frontend.schema :as db-schema]
[logseq.graph-parser.text :as text]))
@@ -80,7 +81,9 @@
(start! repo {}))
([repo {:keys [listen-handler]}]
(let [db-name (db-conn-state/get-repo-path repo)
db-conn (d/create-conn db-schema/schema)]
db-conn (if (config/db-based-graph? repo)
(d/create-conn db-schema/schema)
(d/create-conn file-schema/schema))]
(destroy-all!)
(swap! conns assoc db-name db-conn)
(when listen-handler