From 75f34b80a8b3913d81a71ac7dc237d23c990bb4a Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 21 Mar 2024 15:12:26 +0100 Subject: [PATCH] Clean up notification requests when deleting accounts (#29693) --- app/services/delete_account_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/delete_account_service.rb b/app/services/delete_account_service.rb index bdfe0e716..328d8ae8f 100644 --- a/app/services/delete_account_service.rb +++ b/app/services/delete_account_service.rb @@ -185,6 +185,7 @@ class DeleteAccountService < BaseService # polymorphically associated notifications generated by this account Notification.where(from_account: @account).in_batches.delete_all + NotificationRequest.where(from_account: @account).in_batches.delete_all end def purge_favourites!