FIX: Regression in admin new features (#12068)
This commit is contained in:
parent
ae64490162
commit
74ca5ec743
|
@ -117,12 +117,12 @@ module DiscourseUpdates
|
||||||
|
|
||||||
def new_features_payload
|
def new_features_payload
|
||||||
response = Excon.new(new_features_endpoint).request(expects: [200], method: :Get)
|
response = Excon.new(new_features_endpoint).request(expects: [200], method: :Get)
|
||||||
JSON.parse(response.body)
|
response.body
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_new_features(json = nil)
|
def update_new_features(payload = nil)
|
||||||
json ||= new_features_payload
|
payload ||= new_features_payload
|
||||||
Discourse.redis.set(new_features_key, json)
|
Discourse.redis.set(new_features_key, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def new_features
|
def new_features
|
||||||
|
|
Loading…
Reference in New Issue