Skip to content

Commit

Permalink
small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed Dec 8, 2024
1 parent 1cca849 commit 71234e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pay-api/src/pay_api/models/payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,7 @@ def filter_payment_account(cls, query, auth_account_id, search_filter: dict, inc
payment_account_id = (
db.session.query(PaymentAccount.id).filter(PaymentAccount.auth_account_id == auth_account_id).scalar()
)
if payment_account_id:
query = query.filter(Invoice.payment_account_id == payment_account_id)
query = query.filter(Invoice.payment_account_id == payment_account_id or -1)
if account_name:
if include_joins:
query = query.join(PaymentAccount, PaymentAccount.id == Invoice.payment_account_id)
Expand Down

0 comments on commit 71234e3

Please sign in to comment.