subscriptions_cleanup_scheduler.rb 205 B

1234567891011
  1. # frozen_string_literal: true
  2. require 'sidekiq-scheduler'
  3. class Scheduler::SubscriptionsCleanupScheduler
  4. include Sidekiq::Worker
  5. def perform
  6. Subscription.expired.in_batches.delete_all
  7. end
  8. end