diff --git a/src/clj/auto_ap/routes/exports.clj b/src/clj/auto_ap/routes/exports.clj index 08e92f02..b037e3cb 100644 --- a/src/clj/auto_ap/routes/exports.clj +++ b/src/clj/auto_ap/routes/exports.clj @@ -56,7 +56,12 @@ (map <-graphql (d-vendors/get-graphql {}))) (GET "/ledger/export" {:keys [query-params identity]} (assert-admin identity) - (map <-graphql (d-ledger/get-graphql {}))) + (transduce (comp + (map #(update % :journal-entry/date to-date)) + (map <-graphql)) + conj + (list) + (first (d-ledger/get-graphql {})))) (GET "/transactions/export" {:keys [query-params identity]} (assert-admin identity)