From 677f72df33ff51153b0141e7b357c2d3df33e64b Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Tue, 9 Jun 2026 05:54:09 +0200 Subject: [PATCH] Utilizing allow global match into scene actor association. --- src/actors.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actors.js b/src/actors.js index 7a1d274f..14df6bb4 100755 --- a/src/actors.js +++ b/src/actors.js @@ -913,7 +913,7 @@ async function getOrCreateActors(baseActors, batchId) { .whereRaw(` actors.slug = base_actors.slug AND actors.entity_id IS NULL - AND NOT base_actors.collision_likely + AND (NOT base_actors.collision_likely OR actors.allow_global_match) `) .orWhereRaw(` actors.slug = base_actors.slug @@ -981,7 +981,7 @@ async function getOrCreateActors(baseActors, batchId) { await storeProfiles(newActorProfiles); - if (Array.isArray(newActors)) { + if (Array.isArray(newActors) && newActors.length > 0) { await updateActorSearch(newActors.map((actor) => actor.id)); return newActors.concat(existingActors); }