mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 23:48:45 +08:00
15 lines
277 B
Ruby
15 lines
277 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Jobs
|
|
|
|
class CheckNewFeatures < ::Jobs::Scheduled
|
|
every 1.day
|
|
|
|
def execute(args)
|
|
@new_features_json ||= DiscourseUpdates.new_features_payload
|
|
DiscourseUpdates.update_new_features(@new_features_json)
|
|
end
|
|
end
|
|
|
|
end
|