Fix PR review findings

- Replace copy-pasted New Relic URLs in Resend third-party entry
  with correct resend.com URLs and drop inapplicable fields
- Escape single '%' instead of '%%' in LIKE pattern conversion so
  literal percent signs are not treated as wildcards
- Return actual row ID from CommonTrackerPattern.Upsert via
  RETURNING id so conflict-path callers get the existing ID
- Add ORDER BY id ASC to vendor-by-common-third-party query for
  deterministic LIMIT 1 selection

Signed-off-by: Émile Ré <emile@getprobo.com>
Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-05-14 14:10:41 +04:00
committed by Émile Ré
parent f52a4746fd
commit a16821802e
5 changed files with 27 additions and 19 deletions

View File

@@ -1358,6 +1358,7 @@ WHERE
AND organization_id = @organization_id
AND common_third_party_id = @common_third_party_id
AND snapshot_id IS NULL
ORDER BY id ASC
LIMIT 1;
`