diff --git a/common b/common index 4316b69a..7a39529e 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 4316b69a43daeaa7ddadb428ccc6cb3eb10f555e +Subproject commit 7a39529e2c20faa7153b8ffe932842e30b46aeb4 diff --git a/src/actors.js b/src/actors.js index 04d3dc5b..2e5580e6 100755 --- a/src/actors.js +++ b/src/actors.js @@ -39,7 +39,6 @@ const { resolveLayoutScraper } = require('./scrapers/resolve'); const getRecursiveParameters = require('./utils/get-recursive-parameters'); const commonContext = { - argv, knex, redis, logger, @@ -474,8 +473,8 @@ async function curateProfile(profile, actor) { if (argv.resolvePlace) { const [placeOfBirth, placeOfResidence] = await Promise.all([ - resolvePlace(profile.birthPlace, commonContext), - resolvePlace(profile.residencePlace, commonContext), + resolvePlace(profile.birthPlace, commonContext, { useCache: argv.placeCache, userAgent: config.location.userAgent }), + resolvePlace(profile.residencePlace, commonContext, { useCache: argv.placeCache, userAgent: config.location.userAgent }), ]); curatedProfile.placeOfBirth = placeOfBirth;