Fix a bug introduced when refactoring some code. The notification status happened in the wrong order - this resolved that.

This meant notifications sent with a test key never got a 'delivered' status.
This commit is contained in:
Rebecca Law
2019-05-23 16:40:17 +01:00
parent c8a8a614a6
commit 2844fa530b
2 changed files with 23 additions and 16 deletions

View File

@@ -51,8 +51,8 @@ def send_sms_to_provider(notification):
)
if service.research_mode or notification.key_type == KEY_TYPE_TEST:
send_sms_response(provider.get_name(), str(notification.id), notification.to)
update_notification_to_sending(notification, provider)
send_sms_response(provider.get_name(), str(notification.id), notification.to)
else:
try: