Bläddra i källkod

fix: nbb cannot use glogi

rcmerci 5 månader sedan
förälder
incheckning
75a053f918
2 ändrade filer med 3 tillägg och 5 borttagningar
  1. 1 2
      deps/db/nbb.edn
  2. 2 3
      deps/db/src/logseq/db/frontend/validate.cljs

+ 1 - 2
deps/db/nbb.edn

@@ -10,5 +10,4 @@
                                          :sha     "7182b7878410f78536dc2b6df35ed32ef9cd6b61"}
   io.github.nextjournal/nbb-test-runner
   {:git/sha "012017a8a8983d05f905f38f631f5222f25b9ed9"}
-  io.github.pez/baldr {:mvn/version "1.0.9"}
-  com.lambdaisland/glogi {:mvn/version "1.1.144"}}}
+  io.github.pez/baldr {:mvn/version "1.0.9"}}}

+ 2 - 3
deps/db/src/logseq/db/frontend/validate.cljs

@@ -2,7 +2,6 @@
   "Validate frontend db for DB graphs"
   (:require [clojure.pprint :as pprint]
             [datascript.core :as d]
-            [lambdaisland.glogi :as log]
             [logseq.db.frontend.malli-schema :as db-malli-schema]
             [logseq.db.frontend.property :as db-property]
             [malli.core :as m]
@@ -39,10 +38,10 @@
                               ;; remove :db/id as it adds needless declarations to schema
                               #(validator [(dissoc % :db/id)])
                               ent-maps)]
-        (log/info "changed eids:" changed-ids :tx-meta tx-meta)
+        (prn "changed eids:" changed-ids :tx-meta tx-meta)
         (if (seq invalid-ent-maps)
           (let [explainer (get-schema-explainer (:closed-schema? validate-options))]
-            (log/error "Invalid datascript entities detected amongst changed entity ids:" changed-ids)
+            (prn "Invalid datascript entities detected amongst changed entity ids:" changed-ids)
             (doseq [m invalid-ent-maps]
               (let [m' (update m :block/properties (fn [properties]
                                                      (map (fn [[p v]]