mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
Merge branch 'master' into research-mode-implementation
This commit is contained in:
@@ -335,7 +335,7 @@ def sample_notification(notify_db,
|
||||
notification_id = uuid.uuid4()
|
||||
|
||||
if provider_name is None:
|
||||
provider = mmg_provider() if template.template_type == 'sms' else ses_provider()
|
||||
provider_name = mmg_provider().identifier if template.template_type == 'sms' else ses_provider().identifier
|
||||
|
||||
if to_field:
|
||||
to = to_field
|
||||
@@ -359,7 +359,7 @@ def sample_notification(notify_db,
|
||||
data['job_row_number'] = job_row_number
|
||||
notification = Notification(**data)
|
||||
if create:
|
||||
dao_create_notification(notification, template.template_type, provider.identifier)
|
||||
dao_create_notification(notification, template.template_type, provider_name)
|
||||
return notification
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user