logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

subscriptions_cleanup_scheduler.rb (205B)


  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