mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-08-25 05:07:19 +00:00
12 lines
265 B
Ruby
12 lines
265 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module ::Jobs
|
||
|
class ManuallyUpdateCampaignData < ::Jobs::Base
|
||
|
|
||
|
def execute(args)
|
||
|
return unless SiteSetting.discourse_subscriptions_campaign_enabled
|
||
|
DiscourseSubscriptions::Campaign.new.refresh_data
|
||
|
end
|
||
|
end
|
||
|
end
|