Skip to content

Commit

Permalink
fix(api): Log urls fetched
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Dec 4, 2023
1 parent b120d2b commit 6e29f43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/utils/works.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ const getOpenAlexPublicationsByYear = (options, cursor = '*', previousResponse =
})));
const nextCursor = response?.meta?.next_cursor;
if (nextCursor && hits.length > 0 && (Number(process.env.OPENALEX_MAX_SIZE) === 0 || results.length < Number(process.env.OPENALEX_MAX_SIZE))) {
console.log(results.length);
return getOpenAlexPublicationsByYear(options, nextCursor, results);
}
return results;
Expand Down

0 comments on commit 6e29f43

Please sign in to comment.