about summary refs log tree commit diff
path: root/app/controllers/api/v1/admin
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-04-08 22:24:07 +0200
committerGitHub <noreply@github.com>2022-04-08 22:24:07 +0200
commitc483101b4ae7d9f22ea43921c512f479e16e98ca (patch)
tree1de88394686dd7f532e7ddf68a9023caa1bfdb88 /app/controllers/api/v1/admin
parente0c39f9fad837b77373220515f078f2443ddf553 (diff)
parenta8d89aabb2292af499f2d1392ad435dd261dd41b (diff)
Merge pull request #1737 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/controllers/api/v1/admin')
-rw-r--r--app/controllers/api/v1/admin/accounts_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/api/v1/admin/accounts_controller.rb b/app/controllers/api/v1/admin/accounts_controller.rb
index dc9d3402f..65ed69f7b 100644
--- a/app/controllers/api/v1/admin/accounts_controller.rb
+++ b/app/controllers/api/v1/admin/accounts_controller.rb
@@ -65,8 +65,9 @@ class Api::V1::Admin::AccountsController < Api::BaseController
 
   def destroy
     authorize @account, :destroy?
+    json = render_to_body json: @account, serializer: REST::Admin::AccountSerializer
     Admin::AccountDeletionWorker.perform_async(@account.id)
-    render json: @account, serializer: REST::Admin::AccountSerializer
+    render json: json
   end
 
   def unsensitive