From 5ddca3538912625e282120b7956058e1bc9b5d45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Pocrnji=C4=8D?= Date: Wed, 17 Dec 2025 22:17:00 +0100 Subject: [PATCH] test --- app/Services/ImportProcessor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/ImportProcessor.php b/app/Services/ImportProcessor.php index 4966dac..edc690a 100644 --- a/app/Services/ImportProcessor.php +++ b/app/Services/ImportProcessor.php @@ -3120,8 +3120,8 @@ private function upsertAddress(int $personId, array $addrData, $mappings): array } // If identical address already exists anywhere, skip to avoid constraint violation $existingAny = PersonAddress::where('address', $addressLine)->first(); - if ($existingAny && $existingAny->person_id !== $personId) { - return ['action' => 'skipped', 'message' => 'Address already exists for another person']; + if ($existingAny) { + return ['action' => 'skipped', 'message' => 'Address already exists in database']; } // Default country SLO if not provided if (! isset($addrData['country']) || $addrData['country'] === null || $addrData['country'] === '') {