fix timer on get candidates function
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user