another attempt at making payments work.

This commit is contained in:
2024-02-08 23:15:41 -08:00
parent 90a6302beb
commit 6d342169d8
2 changed files with 2 additions and 2 deletions

View File

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

View File

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