Skip to content

Commit

Permalink
Fix munged-entity
Browse files Browse the repository at this point in the history
  • Loading branch information
plexus committed Sep 3, 2024
1 parent d6c301e commit 389e355
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/co/gaiwan/compass/db.clj
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
(defn db []
(d/db (conn)))

(declare munge-from-db ->munged-entity)
(declare munge-1-from-db ->munged-entity)

(po-coll/def-map-type munged-entity [e]
(get [this k default-value] (munge-from-db (get e k default-value)))
(get [this k default-value] (munge-1-from-db (get e k default-value)))
(assoc [this k v] (->munged-entity (assoc e k v)))
(dissoc [this k] (->munged-entity (dissoc e k)))
(keys [this] (keys e))
Expand Down Expand Up @@ -99,4 +99,6 @@

(transact [{:db/id 17592186045437,
:session/capacity 1}])

(wagontrain/applied? (conn) :add-locations)
)

0 comments on commit 389e355

Please sign in to comment.