mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
return pending payments in order serializer
This commit is contained in:
@@ -16,7 +16,7 @@ module Api
|
||||
end
|
||||
|
||||
def payments
|
||||
object.payments.joins(:payment_method).valid
|
||||
object.payments.joins(:payment_method).where('state IN (?)', %w(completed pending))
|
||||
end
|
||||
|
||||
def shop_id
|
||||
|
||||
Reference in New Issue
Block a user