mirror of
https://github.com/mastodon/mastodon.git
synced 2026-05-14 00:00:04 -05:00
12 lines
233 B
Ruby
12 lines
233 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Admin::EmailSubscriptionsPurgeWorker
|
|
include Sidekiq::Worker
|
|
|
|
sidekiq_options lock: :until_executed, lock_ttl: 1.week.to_i
|
|
|
|
def perform
|
|
EmailSubscription.in_batches.delete_all
|
|
end
|
|
end
|