mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
Update notification status by message reference
- SES sends a reference to allow us to identify the notification - use this to update status If source of email is one of our internal emails (invites or validations) - don't try and update a notification.
This commit is contained in:
@@ -282,6 +282,7 @@ def sample_notification(notify_db,
|
||||
job=None,
|
||||
to_field=None,
|
||||
status='sent',
|
||||
reference=None,
|
||||
created_at=datetime.utcnow()):
|
||||
if service is None:
|
||||
service = sample_service(notify_db, notify_db_session)
|
||||
@@ -305,6 +306,7 @@ def sample_notification(notify_db,
|
||||
'service': service,
|
||||
'template': template,
|
||||
'status': status,
|
||||
'reference': reference,
|
||||
'created_at': created_at
|
||||
}
|
||||
notification = Notification(**data)
|
||||
|
||||
Reference in New Issue
Block a user