Skip to content

Commit

Permalink
Update keysets retrieval method to remove handling of legacy code
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleh Motnyk committed Sep 3, 2018
1 parent 26ac4c6 commit 69296fb
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/data/db_apps.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -381,22 +381,7 @@ module.exports = (env) ->
if providers?.length > 0
callback null, providers
else
env.data.redis.get prefix + ':stored_keysets', (err, v) ->
if v != '1'
env.data.redis.set prefix + ':stored_keysets', '1', (err) ->
env.data.redis.keys prefix + ':k:*', (err, provider_keys) ->
return callback err if err
commands = []
providers = []
for key in provider_keys
p = key.replace(prefix + ':k:', '')
providers.push p
commands.push ['sadd', providers_key, p]
env.data.redis.multi(commands).exec (err) ->
return callback err if err
callback null, providers
else
callback null, providers
callback null, []

# check a domain
App.checkDomain = check check.format.key, 'string', (key, domain_str, callback) ->
Expand Down

0 comments on commit 69296fb

Please sign in to comment.