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