Makes multiple client selection somewhat possible via graphql.

This commit is contained in:
2023-08-31 13:05:06 -07:00
parent 9c472dfc8e
commit 1d82ec29e0
29 changed files with 274 additions and 139 deletions

View File

@@ -433,7 +433,7 @@
(let [[payments checks-count] (d-checks/get-graphql (-> args
:filters
(<-graphql)
(assoc :id (:id context))
(assoc :clients (:clients context))
(update :payment-type enum->keyword "payment-type")
(update :status enum->keyword "payment-status")))]
@@ -557,10 +557,10 @@
(defn void-payments [context args _]
(assert-admin (:id context))
(let [args (assoc args :id (:id context))
(let [args (assoc args :clients (:clients context))
ids (some-> args
:filters
(assoc :id (:id context))
(assoc :clients (:clients context))
(<-graphql)
(update :payment-type enum->keyword "payment-type")
(update :status enum->keyword "payment-status")