diff options
Diffstat (limited to 'app/services/pages/delete_service.rb')
-rw-r--r-- | app/services/pages/delete_service.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/pages/delete_service.rb b/app/services/pages/delete_service.rb index 7408943e78c..fc5d01a93a1 100644 --- a/app/services/pages/delete_service.rb +++ b/app/services/pages/delete_service.rb @@ -3,8 +3,7 @@ module Pages class DeleteService < BaseService def execute - project.remove_pages - project.pages_domains.destroy_all # rubocop: disable Cop/DestroyAll + PagesRemoveWorker.perform_async(project.id) end end end |