Skip to content

Commit

Permalink
Merge pull request #135 from Synthetixio/dev
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
peiman3 authored Feb 12, 2025
2 parents beb7510 + d931595 commit 5bc04ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/routes/v3/base/lt-trades.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ setInterval(fetchDataFromPostgres, cacheTime < 30000 ? 30000 : cacheTime);
router.get('/', async (req, res, next) => {
try {
log.debug('Checking cache..');
const { account } = req.query;
let { account } = req.query;
if (account) {
account = `0x${account}`;
}
const cacheKey = account ? `${cacheKeyPrefix}-${account}` : cacheKeyPrefix;
const cachedResponse = await getCache(cacheKey);

Expand Down
5 changes: 4 additions & 1 deletion src/routes/v3/optimism/lt-trades.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ setInterval(fetchDataFromPostgres, cacheTime < 30000 ? 30000 : cacheTime);
router.get('/', async (req, res, next) => {
try {
log.debug('Checking cache..');
const { account } = req.query;
let { account } = req.query;
if (account) {
account = `0x${account}`;
}
const cacheKey = account ? `${cacheKeyPrefix}-${account}` : cacheKeyPrefix;
const cachedResponse = await getCache(cacheKey);

Expand Down

0 comments on commit 5bc04ee

Please sign in to comment.