Skip to content

Commit

Permalink
fix: check location existance
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Nov 20, 2023
1 parent 93bccf9 commit 4625d13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fetcher/src/job/job.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ export function extractFeeds(
if (!f.definition.location) {
proxy = proxySelector(f.definition.url)
} else {
const availableProxies = proxies.filter((item) => item.location === f.definition.location)
const availableProxies = proxies.filter(
(item) => item.location && item.location === f.definition.location
)
if (availableProxies.length == 0) {
throw `no proxies available for location:${f.definition.location}`
}
Expand Down

0 comments on commit 4625d13

Please sign in to comment.