Fixes checks permissions
This commit is contained in:
@@ -162,6 +162,7 @@
|
|||||||
payments))
|
payments))
|
||||||
|
|
||||||
(defn get-graphql [args]
|
(defn get-graphql [args]
|
||||||
|
(log/info (:id args))
|
||||||
(let [db (d/db conn)
|
(let [db (d/db conn)
|
||||||
{ids-to-retrieve :ids matching-count :count} (raw-graphql-ids db args)]
|
{ids-to-retrieve :ids matching-count :count} (raw-graphql-ids db args)]
|
||||||
|
|
||||||
|
|||||||
@@ -412,10 +412,10 @@
|
|||||||
nil)}))
|
nil)}))
|
||||||
|
|
||||||
(defn get-payment-page [context args _]
|
(defn get-payment-page [context args _]
|
||||||
(let [args (assoc args :id (:id context))
|
(let [[payments checks-count] (d-checks/get-graphql (-> args
|
||||||
[payments checks-count] (d-checks/get-graphql (-> args
|
|
||||||
:filters
|
:filters
|
||||||
(<-graphql)
|
(<-graphql)
|
||||||
|
(assoc :id (:id context))
|
||||||
(update :payment-type enum->keyword "payment-type")
|
(update :payment-type enum->keyword "payment-type")
|
||||||
(update :status enum->keyword "payment-status")))]
|
(update :status enum->keyword "payment-status")))]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user