Utilizing allow global match into scene actor association.
This commit is contained in:
@@ -913,7 +913,7 @@ async function getOrCreateActors(baseActors, batchId) {
|
|||||||
.whereRaw(`
|
.whereRaw(`
|
||||||
actors.slug = base_actors.slug
|
actors.slug = base_actors.slug
|
||||||
AND actors.entity_id IS NULL
|
AND actors.entity_id IS NULL
|
||||||
AND NOT base_actors.collision_likely
|
AND (NOT base_actors.collision_likely OR actors.allow_global_match)
|
||||||
`)
|
`)
|
||||||
.orWhereRaw(`
|
.orWhereRaw(`
|
||||||
actors.slug = base_actors.slug
|
actors.slug = base_actors.slug
|
||||||
@@ -981,7 +981,7 @@ async function getOrCreateActors(baseActors, batchId) {
|
|||||||
|
|
||||||
await storeProfiles(newActorProfiles);
|
await storeProfiles(newActorProfiles);
|
||||||
|
|
||||||
if (Array.isArray(newActors)) {
|
if (Array.isArray(newActors) && newActors.length > 0) {
|
||||||
await updateActorSearch(newActors.map((actor) => actor.id));
|
await updateActorSearch(newActors.map((actor) => actor.id));
|
||||||
return newActors.concat(existingActors);
|
return newActors.concat(existingActors);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user