diff options
Diffstat (limited to 'app/workers/wikis/git_garbage_collect_worker.rb')
-rw-r--r-- | app/workers/wikis/git_garbage_collect_worker.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/workers/wikis/git_garbage_collect_worker.rb b/app/workers/wikis/git_garbage_collect_worker.rb index b00190c6b98..977493834c9 100644 --- a/app/workers/wikis/git_garbage_collect_worker.rb +++ b/app/workers/wikis/git_garbage_collect_worker.rb @@ -19,8 +19,12 @@ module Wikis end override :update_db_repository_statistics - def update_db_repository_statistics(resource) - Projects::UpdateStatisticsService.new(resource.container, nil, statistics: [:wiki_size]).execute + def update_db_repository_statistics(resource, stats) + Projects::UpdateStatisticsService.new(resource.container, nil, statistics: stats).execute + end + + def stats + [:wiki_size] end end end |