mirror of
https://github.com/GSA/notifications-api.git
synced 2026-06-08 23:38:32 -04:00
make sure we update both statuses when updating notification history
This commit is contained in:
@@ -895,6 +895,10 @@ class NotificationHistory(db.Model, HistoryModel):
|
||||
history.status = notification.status
|
||||
return history
|
||||
|
||||
def update_from_original(self, original):
|
||||
super().update_from_original(original)
|
||||
self.status = original.status
|
||||
|
||||
@hybrid_property
|
||||
def status(self):
|
||||
return self._status_enum
|
||||
|
||||
Reference in New Issue
Block a user