X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7baff32e82b0bfc961dc9a285da8ce187d4fe0b6..67fd0a85ea38fd2c9c8ac2fc237ade47613d78e8:/services/api/lib/sweep_trashed_objects.rb diff --git a/services/api/lib/sweep_trashed_objects.rb b/services/api/lib/sweep_trashed_objects.rb index 6ade1fc567..8613c749cf 100644 --- a/services/api/lib/sweep_trashed_objects.rb +++ b/services/api/lib/sweep_trashed_objects.rb @@ -55,8 +55,8 @@ module SweepTrashedObjects end def self.sweep_if_stale - return if Rails.configuration.Collections["TrashSweepInterval"] <= 0 - exp = Rails.configuration.Collections["TrashSweepInterval"].seconds + return if Rails.configuration.Collections.TrashSweepInterval <= 0 + exp = Rails.configuration.Collections.TrashSweepInterval.seconds need = false Rails.cache.fetch('SweepTrashedObjects', expires_in: exp) do need = true