forked from DebaucheryLibrarian/traxxx
Removed stray console logs.
This commit is contained in:
parent
c2fa571aa0
commit
29ab61e713
|
@ -617,8 +617,6 @@ async function scrapeProfiles(actor, sources, entitiesBySlug, existingProfilesBy
|
||||||
...actor,
|
...actor,
|
||||||
}), context, include);
|
}), context, include);
|
||||||
|
|
||||||
console.log('PROFILE', profile);
|
|
||||||
|
|
||||||
if (!profile || typeof profile === 'number') { // scraper returns HTTP code on request failure
|
if (!profile || typeof profile === 'number') { // scraper returns HTTP code on request failure
|
||||||
logger.verbose(`Profile for '${actor.name}' not available on ${label}, scraper returned ${profile}`);
|
logger.verbose(`Profile for '${actor.name}' not available on ${label}, scraper returned ${profile}`);
|
||||||
throw Object.assign(new Error(`Profile for '${actor.name}' not available on ${label}`), { code: 'PROFILE_NOT_AVAILABLE' });
|
throw Object.assign(new Error(`Profile for '${actor.name}' not available on ${label}`), { code: 'PROFILE_NOT_AVAILABLE' });
|
||||||
|
@ -715,8 +713,6 @@ async function getActorNames(actorNames) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function storeProfiles(profiles) {
|
async function storeProfiles(profiles) {
|
||||||
console.log('profiles', profiles);
|
|
||||||
|
|
||||||
const profilesWithAvatarIds = await associateAvatars(profiles);
|
const profilesWithAvatarIds = await associateAvatars(profiles);
|
||||||
const actorIds = Array.from(new Set(profiles.map((profile) => profile.actorId)));
|
const actorIds = Array.from(new Set(profiles.map((profile) => profile.actorId)));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue