Fixed actor ID property for newly created profiles, should fix actor association failing.
This commit is contained in:
@@ -850,7 +850,7 @@ async function getOrCreateActors(baseActors, batchId) {
|
||||
.filter((actor) => actor.hasProfile)
|
||||
.map((actor) => ({
|
||||
...actor,
|
||||
id: newActorIdsByEntityIdEntryIdAndSlug[actor.entity?.id]?.[actor.entryId]?.[actor.slug] || newActorIdsByEntityIdEntryIdAndSlug.null?.null?.[actor.slug],
|
||||
actorId: newActorIdsByEntityIdEntryIdAndSlug[actor.entity?.id]?.[actor.entryId]?.[actor.slug] || newActorIdsByEntityIdEntryIdAndSlug.null?.null?.[actor.slug],
|
||||
}))
|
||||
.filter((actor) => !!actor.id)
|
||||
.map((actor) => curateProfile(actor)));
|
||||
@@ -935,8 +935,6 @@ async function associatePeople(releases, batchId, type = 'actor') {
|
||||
return actors;
|
||||
} catch (error) {
|
||||
logger.error(`Failed to associate actors: ${error.message} ${error.stack}`);
|
||||
logger.error(error);
|
||||
console.log(error);
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user