fix timer on get candidates function

This commit is contained in:
Hongbo Wu
2024-04-29 14:33:28 +08:00
parent 9a6ec7a58b
commit cbf1f97630

View File

@ -192,6 +192,8 @@ const getCandidatesList = async (
readableContent: htmlToMarkdown(item.readableContent),
})) // convert the html content to markdown
console.timeEnd('getCandidatesList')
if (dedupedCandidates.length === 0) {
logger.info('No new candidates found')
@ -211,8 +213,6 @@ const getCandidatesList = async (
const candidateIds = selectedCandidates.map((item) => item.id).join(',')
await redisDataSource.redisClient?.set(key, candidateIds)
console.timeEnd('getCandidatesList')
return selectedCandidates
}