should handle case of no payouts.

This commit is contained in:
Bryce
2023-07-26 11:39:19 -07:00
parent 90014fbfcd
commit a2320cec80

View File

@@ -430,6 +430,7 @@
:body
:payouts
(fn [payouts]
(if (seq payouts)
(->> payouts
(s/->source)
(s/map (fn [payout]
@@ -448,7 +449,8 @@
(assoc payout :payout_entries b))))))
(s/buffer 10)
(s/realize-each)
(s/reduce conj [])))))))
(s/reduce conj []))
[]))))))
(defn transformed-payouts
([client location]