mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:05:17 -05:00
start writing message ids to the notifications table
This commit is contained in:
@@ -110,6 +110,16 @@ def _update_notification_status(
|
||||
return notification
|
||||
|
||||
|
||||
@autocommit
|
||||
def update_notification_message_id(notification_id, message_id):
|
||||
stmt = (
|
||||
update(Notification)
|
||||
.where(Notification.id == notification_id)
|
||||
.values({"message_id": message_id})
|
||||
)
|
||||
db.session.execute(stmt)
|
||||
|
||||
|
||||
@autocommit
|
||||
def update_notification_status_by_id(
|
||||
notification_id, status, sent_by=None, provider_response=None, carrier=None
|
||||
|
||||
Reference in New Issue
Block a user