Skip to content

Commit

Permalink
Fix the issue of double parsing for token data (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajupadhyay29 committed Mar 5, 2024
1 parent 392d4e1 commit 067da26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/tokens.js
Expand Up @@ -10,7 +10,7 @@ const getToken = async (code) => {
console.log('getting token from redis', code);
const tokenData = await getData('token', code);
if (tokenData) {
token = JSON.parse(tokenData);
token = tokenData;
_.set(tokens, code, token);
}
}
Expand Down

0 comments on commit 067da26

Please sign in to comment.