fixes compilation bug.

This commit is contained in:
Bryce Covert
2021-01-04 19:42:40 -08:00
parent a911371626
commit d1433492ca

View File

@@ -40,8 +40,7 @@
:serialize #(or (:ident %) (:db/ident %) %)}
:iso_date {:parse #(time/parse % time/iso-date)
:serialize #(time/unparse % time/iso-date)}
:money {:parse #(do
(cond (and (string? %)
:money {:parse #(cond (and (string? %)
(not (str/blank? %)))
(Double/parseDouble %)
@@ -63,9 +62,7 @@
:else
%)
}
:percentage {:parse #(do
(log/info "value is" %)
(cond (and (string? %)
:percentage {:parse #(cond (and (string? %)
(not (str/blank? %)))
(Double/parseDouble %)
@@ -73,7 +70,7 @@
(double %)
:else
%))
%)
:serialize #(if (double? %)
(str %)
%)}}