mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 15:15:01 +00:00
fix: validate property values
This commit is contained in:
4
deps/db/script/validate_client_db.cljs
vendored
4
deps/db/script/validate_client_db.cljs
vendored
@@ -16,9 +16,7 @@
|
||||
(defn validate-client-db
|
||||
"Validate datascript db as a vec of entity maps"
|
||||
[db ent-maps* {:keys [verbose group-errors closed-maps]}]
|
||||
(let [ent-maps ent-maps*
|
||||
;; TODO: Fix
|
||||
;; ent-maps (db-malli-schema/update-properties-in-ents ent-maps*)
|
||||
(let [ent-maps (db-malli-schema/update-properties-in-ents db ent-maps*)
|
||||
schema (db-validate/update-schema db-malli-schema/DB db {:closed-schema? closed-maps})]
|
||||
(if-let [errors (->> ent-maps
|
||||
(m/explain schema)
|
||||
|
||||
Reference in New Issue
Block a user