diff --git a/src/clj/auto_ap/graphql/checks.clj b/src/clj/auto_ap/graphql/checks.clj index 54579b44..f101def9 100644 --- a/src/clj/auto_ap/graphql/checks.clj +++ b/src/clj/auto_ap/graphql/checks.clj @@ -572,7 +572,7 @@ (assert-admin (:id context)) (map ->graphql - (first (d-checks/get-graphql (assoc (<-graphql (assoc (:filters args) :clients (:clients context))) :count Integer/MAX_VALUE))))) + (first (d-checks/get-graphql (assoc (<-graphql (assoc args :clients (:clients context))) :count Integer/MAX_VALUE))))) (defn print-checks [context args _] (assert-can-see-client (:id context) (:client_id args)) diff --git a/src/clj/auto_ap/routes/exports.clj b/src/clj/auto_ap/routes/exports.clj index 50cb0062..83b54d78 100644 --- a/src/clj/auto_ap/routes/exports.clj +++ b/src/clj/auto_ap/routes/exports.clj @@ -126,7 +126,7 @@ [:vendor [:name :id [:primary-contact [:name :email :phone]] [:default-account [:name :numeric-code :id]] [:address [:street1 :city :state :zip]]]] [:client [:id :name :code]] ]]] - payments (graphql/query identity (venia/graphql-query {:venia/queries (->graphql query)}))] + payments (graphql/query identity (venia/graphql-query {:venia/queries (->graphql query)}) {:clients [:client/code (query-params "client-code")]})] {:body (list (:all-payments (:data payments)))})))