mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 01:46:35 +00:00
fix: invalid data
/Validate current graph will try to fix those errors. fixes https://github.com/logseq/db-test/issues/205.
This commit is contained in:
2
deps/db/script/validate_client_db.cljs
vendored
2
deps/db/script/validate_client_db.cljs
vendored
@@ -20,7 +20,7 @@
|
||||
(let [ent-maps (db-malli-schema/update-properties-in-ents db ent-maps*)
|
||||
explainer (db-validate/get-schema-explainer closed-maps)]
|
||||
(if-let [explanation (binding [db-malli-schema/*db-for-validate-fns* db]
|
||||
(->> ent-maps explainer not-empty))]
|
||||
(->> (map (fn [e] (dissoc e :db/id)) 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