diff --git a/common b/common index 0e828216..40011a62 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 0e8282169c7c1346bf28ba6af0353f3b7418132b +Subproject commit 40011a62dae9da8deda71e9f8daf39665a8b7958 diff --git a/src/actors.js b/src/actors.js index 3d9fa912..20fdc389 100755 --- a/src/actors.js +++ b/src/actors.js @@ -27,7 +27,8 @@ const { toBaseReleases } = require('./deep'); const { associateAvatars, flushOrphanedMedia } = require('./media'); const { fetchEntitiesBySlug } = require('./entities'); const { deleteScenes } = require('./releases'); -const { interpolateProfiles: interpolateProfilesUtil } = require('../common/actors.cjs'); + +const actorsCommon = import('../common/actors.mjs'); // eslint-disable-line import/extensions, import/no-relative-packages const slugify = require('./utils/slugify'); const capitalize = require('./utils/capitalize'); @@ -419,6 +420,8 @@ function mergeMainProfile(profile, mainProfile) { */ async function interpolateProfiles(actorIdsOrNames) { + const { interpolateProfiles: interpolateProfilesUtil } = await actorsCommon; + try { await interpolateProfilesUtil(actorIdsOrNames, { knex,