blob: e7cabf54b0c0343eca3a3fc7a7fc42369c9e914e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# frozen_string_literal: true
module Workers
class CleanupPendingPhotos < Base
sidekiq_options queue: :low
def perform
Photo.where(pending: true).where("created_at < ?", 1.day.ago).destroy_all
end
end
end
|