docbrown/app/workers/billboard_event_rollup_worker.rb
Anna Buianova e659dbfc00
Renamed display_ad_events variables and associations (#19788)
* Renamed stuff related to display_ad_events (except the model)

* Updated user billboard_events association spec

* Fixed display_ad_event factory
2023-07-21 14:59:28 +03:00

10 lines
205 B
Ruby

class BillboardEventRollupWorker
include Sidekiq::Worker
sidekiq_options queue: :low_priority
def perform
month_ago = Date.current - 32.days
BillboardEventRollup.rollup month_ago
end
end