mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
avoid message is none scenario
This commit is contained in:
@@ -110,7 +110,6 @@ def _update_notification_status(
|
||||
return notification
|
||||
|
||||
|
||||
@autocommit
|
||||
def update_notification_message_id(notification_id, message_id):
|
||||
stmt = (
|
||||
update(Notification)
|
||||
@@ -118,6 +117,7 @@ def update_notification_message_id(notification_id, message_id):
|
||||
.values({"message_id": message_id})
|
||||
)
|
||||
db.session.execute(stmt)
|
||||
db.session.commit()
|
||||
|
||||
|
||||
@autocommit
|
||||
|
||||
Reference in New Issue
Block a user