about summary refs log tree commit diff
path: root/app/workers/scheduler/subscriptions_cleanup_scheduler.rb
blob: 3b9211e81380f27d5045faadd540c542af567066 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

require 'sidekiq-scheduler'

class Scheduler::SubscriptionsCleanupScheduler
  include Sidekiq::Worker

  def perform
    Subscription.expired.in_batches.delete_all
  end
end