From c45e74a74bb593386e21aa602f748c45a03031b7 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Fri, 2 Feb 2024 09:03:54 -0800 Subject: [PATCH] update sent_at --- app/dao/notifications_dao.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/dao/notifications_dao.py b/app/dao/notifications_dao.py index 23905944c..ededaec04 100644 --- a/app/dao/notifications_dao.py +++ b/app/dao/notifications_dao.py @@ -100,6 +100,7 @@ def _update_notification_status( current_status=notification.status, status=status ) notification.status = status + notification.sent_at = datetime.utcnow() if provider_response: notification.provider_response = provider_response if carrier: @@ -325,6 +326,7 @@ def sanitize_successful_notification_by_id(notification_id, carrier, provider_re "notification_id": notification_id, "carrier": carrier, "response": provider_response, + "sent_at": datetime.utcnow(), } db.session.execute(update_query, input_params)