a number of small bug fixes.

This commit is contained in:
2022-03-02 11:50:03 -08:00
parent d766d758f0
commit 223a3749ec
5 changed files with 18 additions and 10 deletions

View File

@@ -413,8 +413,8 @@
(map ->graphql ))
:total checks-count
:count (count payments)
:start (:start args 0)
:end (+ (:start args 0) (count payments))}]))
:start (-> args :filters (:start 0) )
:end (+ (-> args :filters (:start 0) ) (count payments))}]))
(defn get-potential-payments [context args _]
(let [transaction (d-transactions/get-by-id (:transaction_id args))

View File

@@ -42,8 +42,8 @@
:total_amount total-amount
:total invoice-count
:count (count invoices)
:start (:start args 0)
:end (+ (:start args 0) (count invoices))}]))
:start (-> args :filters (:start 0))
:end (+ (-> args :filters (:start 0)) (count invoices))}]))
(defn get-all-invoices [context args _]
(assert-admin (:id context))