Always create a common tracker pattern during mapping

When neither pattern nor domain matching finds an existing common
tracker pattern, upsert one with no third party association and a
lower confidence (0.5) so every seen pattern is cataloged.

Also fix table name in LoadByOrganizationIDAndCommonThirdPartyID
(vendors -> third_parties).

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-05-15 12:40:14 +04:00
parent 81707fe429
commit 3543d76c4f
2 changed files with 36 additions and 1 deletions

View File

@@ -1352,7 +1352,7 @@ SELECT
created_at,
updated_at
FROM
vendors
third_parties
WHERE
%s
AND organization_id = @organization_id