From 928650b602a83cc80a6a63203775de23c6714495 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Thu, 31 Oct 2024 03:19:18 +0100 Subject: [PATCH] Using options instead of config dependency for common location resolver. --- common | 2 +- src/actors.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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;