about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
Diffstat (limited to 'app/services')
-rw-r--r--app/services/suspend_account_service.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/app/services/suspend_account_service.rb b/app/services/suspend_account_service.rb
index 2361c0ec7..729bf42fe 100644
--- a/app/services/suspend_account_service.rb
+++ b/app/services/suspend_account_service.rb
@@ -12,14 +12,14 @@ class SuspendAccountService < BaseService
   private
 
   def purge_content
-    @account.media_attachments.destroy_all!
-    @account.statuses.destroy_all!
-    @account.stream_entries.destroy_all!
-    @account.mentions.destroy_all!
-    @account.notifications.destroy_all!
-    @account.favourites.destroy_all!
-    @account.active_relationships.destroy_all!
-    @account.passive_relationships.destroy_all!
+    @account.media_attachments.destroy_all
+    @account.statuses.destroy_all
+    @account.stream_entries.destroy_all
+    @account.mentions.destroy_all
+    @account.notifications.destroy_all
+    @account.favourites.destroy_all
+    @account.active_relationships.destroy_all
+    @account.passive_relationships.destroy_all
   end
 
   def purge_profile
@@ -34,6 +34,6 @@ class SuspendAccountService < BaseService
   end
 
   def unsubscribe_push_subscribers
-    @account.subscriptions.destroy_all!
+    @account.subscriptions.destroy_all
   end
 end