Skip to content

Commit

Permalink
fix(log): Rewrite log message
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed May 14, 2024
1 parent d6a499d commit d8761a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/routes/works.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ const getData = async ({ options, resetCache = false }) => {
shasum.update(JSON.stringify(options));
const searchId = shasum.digest('hex');
const queryId = Math.floor(Math.random() * SEED_MAX);
console.time(`0. Query ${queryId} | Cache ${options.affiliationStrings}`);
console.time(`0. Query ${queryId} | Retrieve cache if exists ${options.affiliationStrings}`);
const cache = await getCache({ searchId });
console.timeEnd(`0. Query ${queryId} | Cache ${options.affiliationStrings}`);
console.timeEnd(`0. Query ${queryId} | Retrieve cache if exists ${options.affiliationStrings}`);
if (cache && !resetCache) return cache;
console.time(`1. Query ${queryId} | Requests ${options.affiliationStrings}`);
// eslint-disable-next-line no-param-reassign
Expand Down

0 comments on commit d8761a9

Please sign in to comment.