Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/mutations/packages/destroy_file.rb')
-rw-r--r--app/graphql/mutations/packages/destroy_file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/graphql/mutations/packages/destroy_file.rb b/app/graphql/mutations/packages/destroy_file.rb
index 35a486666d5..4aa33b3504c 100644
--- a/app/graphql/mutations/packages/destroy_file.rb
+++ b/app/graphql/mutations/packages/destroy_file.rb
@@ -15,7 +15,7 @@ module Mutations
def resolve(id:)
package_file = authorized_find!(id: id)
- if package_file.destroy
+ if package_file.update(status: :pending_destruction)
return { errors: [] }
end