mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Small updates:
* Make config use new provider sms template id * create_notification to account for created status * Small robustness addition to test
This commit is contained in:
@@ -75,11 +75,9 @@ def create_notification(
|
||||
if created_at is None:
|
||||
created_at = datetime.utcnow()
|
||||
|
||||
if sent_at is None:
|
||||
sent_at = datetime.utcnow()
|
||||
|
||||
if updated_at is None:
|
||||
updated_at = datetime.utcnow()
|
||||
if status != 'created':
|
||||
sent_at = sent_at or datetime.utcnow()
|
||||
updated_at = updated_at or datetime.utcnow()
|
||||
|
||||
data = {
|
||||
'id': uuid.uuid4(),
|
||||
|
||||
Reference in New Issue
Block a user