X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/baccfce65b0c997202c22e36a2ebfc455eff0334..39755f7642bf974e6e2e1cf3828b5240f489566c:/apps/workbench/app/controllers/users_controller.rb diff --git a/apps/workbench/app/controllers/users_controller.rb b/apps/workbench/app/controllers/users_controller.rb index d2fcbbb94c..1a1c5f8021 100644 --- a/apps/workbench/app/controllers/users_controller.rb +++ b/apps/workbench/app/controllers/users_controller.rb @@ -102,6 +102,7 @@ class UsersController < ApplicationController filter([[:object_uuid, '=', u.uuid], [:event_type, '=', 'user-storage-report']]). order(:created_at => :desc). + with_count('none'). limit(1) storage_log.each do |log_entry| # We expect this block to only execute once since we specified limit(1)