another attempt at making payments work.
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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)))})))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user