From a37ac51c65c3dc3eb4d3db70084bb6c331889d49 Mon Sep 17 00:00:00 2001 From: Alexey Yarmosh Date: Fri, 3 Nov 2023 17:12:26 +0300 Subject: [PATCH] feat: do not apply adoption city data if country doesn`t match --- src/lib/adopted-probes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/adopted-probes.ts b/src/lib/adopted-probes.ts index b71d80e0..29175e70 100644 --- a/src/lib/adopted-probes.ts +++ b/src/lib/adopted-probes.ts @@ -85,7 +85,7 @@ export class AdoptedProbes { getUpdatedLocation (probe: Probe) { const adoptedProbe = this.getByIp(probe.ipAddress); - if (!adoptedProbe || !adoptedProbe.isCustomCity) { + if (!adoptedProbe || !adoptedProbe.isCustomCity || adoptedProbe.country !== probe.location.country) { return probe.location; }