Class: NeetoCommonsBackend::PurgeUnattachedFilesWorker

Inherits:
BaseWorkers::Low show all
Defined in:
app/workers/neeto_commons_backend/purge_unattached_files_worker.rb

Instance Method Summary collapse

Methods inherited from BaseWorkers::Base

delete_matched, perform_unique_async, perform_unique_at, perform_unique_in

Instance Method Details

#performObject



5
6
7
8
9
# File 'app/workers/neeto_commons_backend/purge_unattached_files_worker.rb', line 5

def perform
  # ActiveStorage::Blob.unattached.where(
  #   "active_storage_blobs.created_at <= ?", 1.week.ago
  # ).find_each(&:purge_later)
end