mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
update research mode notifications after callback has been made
if the callback fails, they should still tech fail
This commit is contained in:
@@ -54,8 +54,8 @@ def send_sms_to_provider(notification):
|
|||||||
|
|
||||||
if service.research_mode or notification.key_type == KEY_TYPE_TEST:
|
if service.research_mode or notification.key_type == KEY_TYPE_TEST:
|
||||||
notification.billable_units = 0
|
notification.billable_units = 0
|
||||||
update_notification(notification, provider)
|
|
||||||
send_sms_response(provider.get_name(), str(notification.id), notification.to)
|
send_sms_response(provider.get_name(), str(notification.id), notification.to)
|
||||||
|
update_notification(notification, provider)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
provider.send_sms(
|
provider.send_sms(
|
||||||
|
|||||||
Reference in New Issue
Block a user