Skip to content

Commit

Permalink
Fix bug in :db/default attribute operation
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasEdvardsson authored and jacobobryant committed Oct 16, 2022
1 parent 92a0332 commit 6d6443d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/biffweb/impl/xtdb.clj
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@
(= op :db/add) [k (apply + (or v-before 0) xs)]
:let [[default-value] xs]
(= op :db/default) (if (contains? doc-before k)
v-before
default-value))))
[k v-before]
[k default-value]))))
(into {})))

(b/defnc lookup-info [db doc-id]
Expand Down

0 comments on commit 6d6443d

Please sign in to comment.