fix: tweak schema to be valid for new db graphs

Also reuse initialization data
This commit is contained in:
Gabriel Horner
2023-12-12 16:05:06 -05:00
parent ea65a659d6
commit e228bd1fb6
4 changed files with 10 additions and 8 deletions

View File

@@ -24,8 +24,6 @@
(defn- setup-init-data
"Setup initial data same as frontend.handler.repo/create-db"
[conn]
;; App doesn't persist :db/type but it does load it each time
(d/transact! conn [{:db/id -1 :db/ident :db/type :db/type "db"}])
(let [config-content (or (some-> (find-on-classpath "templates/config.edn") fs/readFileSync str)
(do (println "Setting graph's config to empty since no templates/config.edn was found.")
"{}"))]