mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
If the sms client provider sends more than one delivery receipt only take the update for the the first one.
Only update the notification.status if status = sending.
This commit is contained in:
@@ -58,9 +58,10 @@ def process_sms_client_response(status, reference, client_name):
|
||||
notification_status,
|
||||
notification_statistics_status)
|
||||
if update_success == 0:
|
||||
status_error = "{} callback failed: notification {} not found. Status {}".format(client_name,
|
||||
reference,
|
||||
notification_status_message)
|
||||
status_error = "{} callback failed: notification {} either not found or already updated " \
|
||||
"from sending. Status {}".format(client_name,
|
||||
reference,
|
||||
notification_status_message)
|
||||
return success, status_error
|
||||
|
||||
if not notification_success:
|
||||
|
||||
Reference in New Issue
Block a user