mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
Update Notification history if there is a mismatch in the number of notifications to be updated and the number actually updated.
This commit is contained in:
@@ -526,7 +526,7 @@ def dao_update_notifications_by_reference(references, update_dict):
|
||||
)
|
||||
|
||||
updated_history_count = 0
|
||||
if updated_count == 0:
|
||||
if updated_count != len(references):
|
||||
updated_history_count = NotificationHistory.query.filter(
|
||||
NotificationHistory.reference.in_(references)
|
||||
).update(
|
||||
|
||||
Reference in New Issue
Block a user