2021-01-28 13:41:07 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Jobs
|
|
|
|
|
|
|
|
class CheckNewFeatures < ::Jobs::Scheduled
|
|
|
|
every 1.day
|
|
|
|
|
|
|
|
def execute(args)
|
2021-02-12 08:52:59 -05:00
|
|
|
@new_features_json ||= DiscourseUpdates.new_features_payload
|
|
|
|
DiscourseUpdates.update_new_features(@new_features_json)
|
2021-01-28 13:41:07 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|