* Rename SiteConfig * More renaming * Update spec * Update mandatory settings mapping * More renaming * e2e test fixes * You have a rename, and you have a rename * Spec fix * More changes * Temporarily disable specs * After-merge update * Undo rename for migration * undo rename of DUS * Fix DUS * Fix merge problem * Remove redundant DUS * Fix specs * Remove unused code * Change wrong class name * More cleanup * Re-add missing values to constant * Fix constant * Fix spec * Remove obsolete fields * Add accidentally removed field * Update spec * Move methods from Settings::General to ForemInstance * Remove unneeded model * Change mentions of 'site config'
16 lines
443 B
Ruby
16 lines
443 B
Ruby
module Emails
|
|
class EnqueueDigestWorker
|
|
include Sidekiq::Worker
|
|
|
|
sidekiq_options queue: :medium_priority, retry: 15
|
|
|
|
def perform
|
|
# Temporary
|
|
# @sre:mstruve This is temporary until we have an efficient way to handle this job
|
|
# for our large DEV community. Smaller Forems should be able to handle it no problem
|
|
return if ForemInstance.dev_to?
|
|
|
|
EmailDigest.send_periodic_digest_email
|
|
end
|
|
end
|
|
end
|