Browse Source

fix: fix validate db test (2)

rcmerci 1 year ago
parent
commit
b0379811c0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      deps/db/script/validate_client_db.cljs

+ 2 - 1
deps/db/script/validate_client_db.cljs

@@ -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))]