mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-21 16:01:15 -05:00
update send_at when status resolves
This commit is contained in:
@@ -319,9 +319,10 @@ def _filter_query(query, filter_dict=None):
|
|||||||
def sanitize_successful_notification_by_id(notification_id, carrier, provider_response):
|
def sanitize_successful_notification_by_id(notification_id, carrier, provider_response):
|
||||||
update_query = """
|
update_query = """
|
||||||
update notifications set provider_response=:response, carrier=:carrier,
|
update notifications set provider_response=:response, carrier=:carrier,
|
||||||
notification_status='delivered', "to"='1', normalised_to='1'
|
notification_status='delivered', sent_at=:sent_at, "to"='1', normalised_to='1'
|
||||||
where id=:notification_id
|
where id=:notification_id
|
||||||
"""
|
"""
|
||||||
|
|
||||||
input_params = {
|
input_params = {
|
||||||
"notification_id": notification_id,
|
"notification_id": notification_id,
|
||||||
"carrier": carrier,
|
"carrier": carrier,
|
||||||
|
|||||||
Reference in New Issue
Block a user