mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix timer on get candidates function
This commit is contained in:
parent
9a6ec7a58b
commit
cbf1f97630
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue