Skip to content

Commit

Permalink
fix: fix validate db test (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmerci committed Dec 2, 2024
1 parent d2c877b commit b037981
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deps/db/script/validate_client_db.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down

0 comments on commit b037981

Please sign in to comment.