Skip to content

Commit

Permalink
Small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed Jul 15, 2024
1 parent 895787e commit f55e034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jobs/payment-jobs/tasks/statement_due_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ def _determine_recipient_emails(cls,
if (recipients := StatementRecipientsModel.find_all_recipients_for_payment_id(statement.payment_account_id)):
recipients = ','.join([str(recipient.email) for recipient in recipients])
if action == StatementNotificationAction.OVERDUE:
if current_app.config.get('EFT_OVERDUE_NOTIFY_EMAILS'):
recipients += ',' + current_app.config.get('EFT_OVERDUE_NOTIFY_EMAILS')
if overdue_notify_emails := current_app.config.get('EFT_OVERDUE_NOTIFY_EMAILS'):
recipients += ',' + overdue_notify_emails
return recipients

current_app.logger.info(f'No recipients found for statement: {statement.payment_account_id}. Skipping sending.')
Expand Down

0 comments on commit f55e034

Please sign in to comment.