mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
Fix syncing issue with Notification statuses:
The timeout_notifications job runs daily and does not correctly update both the status fields to keep them in sync.
This commit is contained in:
@@ -410,7 +410,10 @@ def _timeout_notifications(current_statuses, new_status, timeout_start, updated_
|
||||
table.status.in_(current_statuses),
|
||||
table.notification_type != LETTER_TYPE
|
||||
)
|
||||
last_update_count = q.update({'status': new_status, 'updated_at': updated_at}, synchronize_session=False)
|
||||
last_update_count = q.update(
|
||||
{'_status_enum': new_status, '_status_fkey': new_status, 'updated_at': updated_at},
|
||||
synchronize_session=False
|
||||
)
|
||||
return last_update_count
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user