Another minor fix to export.

This commit is contained in:
2021-01-27 17:42:06 -08:00
parent 0a8cf7e2b1
commit 0dd633c6bf

View File

@@ -169,9 +169,11 @@
(map (comp ->graphql (fn [i]
(-> i
(update :transaction/date to-date)
(update :transaction/post-date to-date))))
(cond-> i
true (update :transaction/date to-date)
true (update :transaction/post-date to-date)
(:transaction/payment i) (update-in [:transaction/payment :payment/date] to-date)
)))
transactions)))
(GET "/transactions/export2" {:keys [query-params identity]}