diff --git a/deps/db/src/logseq/db/frontend/validate.cljs b/deps/db/src/logseq/db/frontend/validate.cljs index df71d5f96..52baec2a6 100644 --- a/deps/db/src/logseq/db/frontend/validate.cljs +++ b/deps/db/src/logseq/db/frontend/validate.cljs @@ -16,6 +16,9 @@ closed-schema? mu/closed-schema)) +;; FIXME: flexible schema +;; e.g. ent-map example: +;; {:block/tx-id 536872023} (defn validate-tx-report! "Validates the datascript tx-report for entities that have changed. Returns boolean indicating if db is valid" @@ -74,4 +77,4 @@ (cond-> {:datom-count (count datoms) :entities ent-maps} (some? errors) - (assoc :errors (group-errors-by-entity db ent-maps errors))))) \ No newline at end of file + (assoc :errors (group-errors-by-entity db ent-maps errors)))))