should handle case of no payouts.
This commit is contained in:
@@ -430,6 +430,7 @@
|
|||||||
:body
|
:body
|
||||||
:payouts
|
:payouts
|
||||||
(fn [payouts]
|
(fn [payouts]
|
||||||
|
(if (seq payouts)
|
||||||
(->> payouts
|
(->> payouts
|
||||||
(s/->source)
|
(s/->source)
|
||||||
(s/map (fn [payout]
|
(s/map (fn [payout]
|
||||||
@@ -448,7 +449,8 @@
|
|||||||
(assoc payout :payout_entries b))))))
|
(assoc payout :payout_entries b))))))
|
||||||
(s/buffer 10)
|
(s/buffer 10)
|
||||||
(s/realize-each)
|
(s/realize-each)
|
||||||
(s/reduce conj [])))))))
|
(s/reduce conj []))
|
||||||
|
[]))))))
|
||||||
|
|
||||||
(defn transformed-payouts
|
(defn transformed-payouts
|
||||||
([client location]
|
([client location]
|
||||||
|
|||||||
Reference in New Issue
Block a user