Fix admin APIs returning deleted object instead of empty object upon delete (#19479)

Fix #19153
This commit is contained in:
Eugen Rochko authored and GitHub committed 2022-10-30 02:43:57 +02:00
1 parent 5724da0780
commit 276b85bc91
6 files changed
+7 -21

No files matched your search

@@ -43,7 +43,7 @@ class Api::V1::Admin::DomainAllowsController < Api::BaseController
authorize @domain_allow, :destroy?
UnallowDomainService.new.call(@domain_allow)
log_action :destroy, @domain_allow
render json: @domain_allow, serializer: REST::Admin::DomainAllowSerializer
render_empty
end
private