From b2a07c756d7238bd1612e07edff932c99c7e6cab Mon Sep 17 00:00:00 2001 From: Bryce Date: Mon, 11 Sep 2023 13:24:46 -0700 Subject: [PATCH] adds transaction export --- src/clj/auto_ap/routes/exports.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/clj/auto_ap/routes/exports.clj b/src/clj/auto_ap/routes/exports.clj index 699dee9b..c8592ee7 100644 --- a/src/clj/auto_ap/routes/exports.clj +++ b/src/clj/auto_ap/routes/exports.clj @@ -395,11 +395,12 @@ :code (:bank-account/code bank-account) :id (:db/id bank-account)}})))))})) -(defn export-transactions [{:keys [query-params identity]}] +(defn export-transactions [{:keys [query-params identity clients]}] (assert-admin identity) (statsd/time! [(str "export.time") {:tags #{(client-tag query-params) "export:transactions"}}] (let [[transactions] (d-transactions/get-graphql {:client-code (query-params "client-code") + :clients clients #_#_:original-id (Integer/parseInt (query-params "original")) :count Integer/MAX_VALUE})]