mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
remove reply_to_addresses from task kwargs
also added a test for aws_ses.send_email to prove it handles reply_to_address correctly
This commit is contained in:
@@ -122,7 +122,7 @@ def provider_to_use(notification_type, notification_id):
|
||||
|
||||
|
||||
@notify_celery.task(bind=True, name="send-email-to-provider", max_retries=5, default_retry_delay=5)
|
||||
def send_email_to_provider(self, service_id, notification_id, reply_to_addresses=None):
|
||||
def send_email_to_provider(self, service_id, notification_id):
|
||||
task_start = monotonic()
|
||||
service = dao_fetch_service_by_id(service_id)
|
||||
provider = provider_to_use(EMAIL_TYPE, notification_id)
|
||||
|
||||
@@ -167,7 +167,6 @@ def send_email(self, service_id,
|
||||
notification_id,
|
||||
encrypted_notification,
|
||||
created_at,
|
||||
reply_to_addresses=None,
|
||||
api_key_id=None,
|
||||
key_type=KEY_TYPE_NORMAL):
|
||||
task_start = monotonic()
|
||||
|
||||
Reference in New Issue
Block a user