diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-08 12:09:17 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-08 12:09:17 +0300 |
commit | 21341457a8c422d890a9ec30838b597dea565d62 (patch) | |
tree | aa8aca2a9bce4e16936cc8d7b40aa1c79ca82e35 /app/services | |
parent | 0a319374e7784aa5c2d1c30dd832d2a0509edbab (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/snippets/destroy_service.rb | 5 | ||||
-rw-r--r-- | app/services/snippets/update_statistics_service.rb | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/app/services/snippets/destroy_service.rb b/app/services/snippets/destroy_service.rb index 146a0b53fc1..977626fcf17 100644 --- a/app/services/snippets/destroy_service.rb +++ b/app/services/snippets/destroy_service.rb @@ -27,11 +27,6 @@ module Snippets attempt_destroy! - # Update project statistics if the snippet is a Project one - if snippet.project_id - ProjectCacheWorker.perform_async(snippet.project_id, [], [:snippets_size]) - end - ServiceResponse.success(message: 'Snippet was deleted.') rescue DestroyError service_response_error('Failed to remove snippet repository.', 400) diff --git a/app/services/snippets/update_statistics_service.rb b/app/services/snippets/update_statistics_service.rb index 61fa43e7755..295cb963ccc 100644 --- a/app/services/snippets/update_statistics_service.rb +++ b/app/services/snippets/update_statistics_service.rb @@ -16,11 +16,6 @@ module Snippets snippet.repository.expire_statistics_caches statistics.refresh! - # Update project statistics if the snippet is a Project one - if snippet.project_id - ProjectCacheWorker.perform_async(snippet.project_id, [], [:snippets_size]) - end - ServiceResponse.success(message: 'Snippet statistics successfully updated.') end |