Sha256: cbfc5d39dfb3973002e9a024375a955f0857c5c412f5ad481df3738bb3a476f5
Contents?: true
Size: 683 Bytes
Versions: 1
Compression:
Stored size: 683 Bytes
Contents
module Zetto::Storage::ImpuretyData class Restore def execute(token_data_str) token_data_hash = JSON.parse(token_data_str) key_of_impurity_hash = token_data_hash.keys[0] redis = Zetto::Storage::Connect::RedisSingelton.get json_data = redis.get('impurity_hash_data:' + key_of_impurity_hash.to_s) return nil if json_data.nil? data = JSON.parse(json_data) data['token'] = token_data_hash[key_of_impurity_hash] data rescue Exception => e Zetto::Services::Info.error_message I18n.t('exseptions.unknown_error', argument: 'Zetto::Storage::ImpuretyData::Restore', current_method: __method__), e nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zetto-2.2.0 | lib/zetto/storage/impurety_data/restore.rb |