Utilizing allow global match into scene actor association.

This commit is contained in:
DebaucheryLibrarian
2026-06-09 05:54:09 +02:00
parent 18d6832f95
commit 677f72df33

View File

@@ -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);
} }