Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed Oct 30, 2024
1 parent 3c68473 commit 8adb930
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pay-api/src/pay_api/factory/payment_system_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ def create(**kwargs):
elif Role.TIP_INTERNAL_PAYMENT_OVERRIDE in user.roles:
_instance = InternalPayService()
elif Role.STAFF.value in user.roles:
if has_bcol_account_number:
_instance = BcolService()
else:
_instance = InternalPayService()
_instance = BcolService() if has_bcol_account_number else InternalPayService()
else:
# System accounts can create BCOL payments similar to staff by providing as payload
if has_bcol_account_number and Role.SYSTEM.value in user.roles:
Expand Down

0 comments on commit 8adb930

Please sign in to comment.