moved to transducer, fixed export.

This commit is contained in:
Bryce Covert
2019-08-31 07:48:27 -07:00
parent 8a9300e928
commit 051280970f

View File

@@ -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)