mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-23 15:56:45 -04:00
Various tidy ups and changes
- use new queue - remove some new lines in AWS response data - migration script to populate new fields
This commit is contained in:
@@ -263,7 +263,9 @@ def send_sms(service_id, notification_id, encrypted_notification, created_at):
|
||||
|
||||
try:
|
||||
if service.research_mode:
|
||||
send_sms_response.apply_async((provider.get_name(), str(notification_id), notification['to']), queue='sms')
|
||||
send_sms_response.apply_async(
|
||||
(provider.get_name(), str(notification_id), notification['to']), queue='research-mode'
|
||||
)
|
||||
else:
|
||||
provider.send_sms(
|
||||
to=validate_and_format_phone_number(notification['to']),
|
||||
@@ -338,7 +340,9 @@ def send_email(service_id, notification_id, from_address, encrypted_notification
|
||||
|
||||
if service.research_mode:
|
||||
reference = create_uuid()
|
||||
send_email_response.apply_async((provider.get_name(), str(reference), notification['to']), queue='email')
|
||||
send_email_response.apply_async(
|
||||
(provider.get_name(), str(reference), notification['to']), queue='research-mode'
|
||||
)
|
||||
else:
|
||||
reference = provider.send_email(
|
||||
from_address,
|
||||
|
||||
Reference in New Issue
Block a user