Add team key to the notifications to delete/insert into notifications/notification_history

This commit is contained in:
Rebecca Law
2020-03-31 09:23:41 +01:00
parent 8faeefc6cb
commit 1444150d48
2 changed files with 29 additions and 1 deletions

View File

@@ -351,7 +351,7 @@ def insert_notification_history_delete_notifications(
WHERE service_id = :service_id
AND notification_type = :notification_type
AND created_at < :timestamp_to_delete_backwards_from
AND key_type = 'normal'
AND key_type in ('normal', 'team')
limit :qry_limit
"""
# Insert into NotificationHistory if the row already exists do nothing.