return pending payments in order serializer

This commit is contained in:
Andy Brett
2021-02-05 10:45:10 -08:00
parent 6efad74c5c
commit 8c7bf863f8

View File

@@ -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