From 0dd633c6bff8fdfc03330f8f5f3dcc030fdf94f8 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Wed, 27 Jan 2021 17:42:06 -0800 Subject: [PATCH] Another minor fix to export. --- src/clj/auto_ap/routes/exports.clj | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/clj/auto_ap/routes/exports.clj b/src/clj/auto_ap/routes/exports.clj index 45f7322b..bc66949f 100644 --- a/src/clj/auto_ap/routes/exports.clj +++ b/src/clj/auto_ap/routes/exports.clj @@ -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]}