Commit b31c5332 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Revert unneeded change in project destroy service

parent ed0547b7
...@@ -29,6 +29,7 @@ module Projects ...@@ -29,6 +29,7 @@ module Projects
Project.transaction do Project.transaction do
project.team.truncate project.team.truncate
project.destroy!
unless remove_legacy_registry_tags unless remove_legacy_registry_tags
raise_error('Failed to remove some tags in project container registry. Please try again or contact administrator.') raise_error('Failed to remove some tags in project container registry. Please try again or contact administrator.')
...@@ -41,8 +42,6 @@ module Projects ...@@ -41,8 +42,6 @@ module Projects
unless remove_repository(wiki_path) unless remove_repository(wiki_path)
raise_error('Failed to remove wiki repository. Please try again or contact administrator.') raise_error('Failed to remove wiki repository. Please try again or contact administrator.')
end end
project.destroy!
end end
log_info("Project \"#{project.path_with_namespace}\" was removed") log_info("Project \"#{project.path_with_namespace}\" was removed")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment