FIX: Regression in admin new features (#12068)

This commit is contained in:
Penar Musaraj 2021-02-12 10:49:10 -05:00 committed by GitHub
parent ae64490162
commit 74ca5ec743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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