mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 01:16:27 +00:00
fix: fix validate db test (2)
This commit is contained in:
3
deps/db/script/validate_client_db.cljs
vendored
3
deps/db/script/validate_client_db.cljs
vendored
@@ -21,7 +21,8 @@
|
||||
[db ent-maps* {:keys [verbose group-errors humanize closed-maps]}]
|
||||
(let [ent-maps (db-malli-schema/update-properties-in-ents db ent-maps*)
|
||||
explainer (db-validate/get-schema-explainer closed-maps)]
|
||||
(if-let [explanation (->> ent-maps explainer not-empty)]
|
||||
(if-let [explanation (binding [db-malli-schema/*db-for-validate-fns* db]
|
||||
(->> ent-maps explainer not-empty))]
|
||||
(do
|
||||
(if group-errors
|
||||
(let [ent-errors (db-validate/group-errors-by-entity db ent-maps (:errors explanation))]
|
||||
|
||||
Reference in New Issue
Block a user