canada UK ses callbacks monster mash

This commit is contained in:
jimmoffet
2022-09-15 14:59:13 -07:00
parent e79adfaed5
commit b0f819dbd9
13 changed files with 638 additions and 130 deletions

View File

@@ -163,7 +163,10 @@ def update_notification_to_sending(notification, provider):
notification.sent_at = datetime.utcnow()
notification.sent_by = provider.name
if notification.status not in NOTIFICATION_STATUS_TYPES_COMPLETED:
notification.status = NOTIFICATION_SENT if notification.international else NOTIFICATION_SENDING
# We currently have no callback method for SNS
# TODO create celery task to request delivery receipts from cloudwatch api
notification.status = NOTIFICATION_SENT if notification.notification_type == "sms" else NOTIFICATION_SENDING
dao_update_notification(notification)