diff options
Diffstat (limited to 'app/services/namespaces/statistics_refresher_service.rb')
-rw-r--r-- | app/services/namespaces/statistics_refresher_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/namespaces/statistics_refresher_service.rb b/app/services/namespaces/statistics_refresher_service.rb index 805060cdee9..2580d2f09fd 100644 --- a/app/services/namespaces/statistics_refresher_service.rb +++ b/app/services/namespaces/statistics_refresher_service.rb @@ -5,6 +5,7 @@ module Namespaces RefresherError = Class.new(StandardError) def execute(root_namespace) + root_namespace = root_namespace.root_ancestor # just in case the true root isn't passed root_storage_statistics = find_or_create_root_storage_statistics(root_namespace.id) root_storage_statistics.recalculate! |