Delete all notification_status types.

This will ensure the whole day has been deleted. The stats table could get the wrong updates if there is partial data for a day.
This commit is contained in:
Rebecca Law
2020-03-27 12:14:30 +00:00
parent e4df43e412
commit 8da73510c2
2 changed files with 31 additions and 30 deletions

View File

@@ -352,7 +352,6 @@ def insert_notification_history_delete_notifications(
AND notification_type = :notification_type
AND created_at < :timestamp_to_delete_backwards_from
AND key_type = 'normal'
AND notification_status in ('delivered', 'permanent-failure', 'temporary-failure')
limit :qry_limit
"""
# Insert into NotificationHistory if the row already exists do nothing.