mirror of
https://github.com/hempyhemp/hh-auto-reply.git
synced 2026-07-24 21:04:58 +00:00
♻️ fix(src/hh/scraper.ts): очищает кэш вакансий от устаревших ссылок при применении результатов
All checks were successful
Deploy / deploy (push) Successful in 3m20s
All checks were successful
Deploy / deploy (push) Successful in 3m20s
This commit is contained in:
@@ -569,6 +569,10 @@ export async function applyToJobs(
|
||||
results.applied.push(ref)
|
||||
appliedCount++
|
||||
consecutiveSkips = 0
|
||||
|
||||
const cached = vacancyCache.get(cacheKey)
|
||||
if (cached)
|
||||
cached.vacancies = cached.vacancies.filter(v => v.href !== vacancy.href)
|
||||
}
|
||||
catch (err) {
|
||||
results.errors.push({ ...ref, message: (err as Error).message })
|
||||
|
||||
Reference in New Issue
Block a user