From dd73227db141385eebe07017da6fd1b33861ba6f Mon Sep 17 00:00:00 2001 From: vladp Date: Wed, 15 Apr 2026 09:46:29 +0700 Subject: [PATCH] dev add geo country service --- src/main/java/ru/soune/nocopy/handler/ViolationHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ru/soune/nocopy/handler/ViolationHandler.java b/src/main/java/ru/soune/nocopy/handler/ViolationHandler.java index 1b6c26b..f2ad280 100644 --- a/src/main/java/ru/soune/nocopy/handler/ViolationHandler.java +++ b/src/main/java/ru/soune/nocopy/handler/ViolationHandler.java @@ -126,7 +126,7 @@ public class ViolationHandler implements RequestHandler { for (Violation violation : content) { ViolationResponse.ViolationDto violationDto = ViolationResponse.ViolationDto.fromEntity(violation); - violationDto.setCountry(geoCountryService.getCountry(violation.getHost())); + violationDto.setCountry(geoCountryService.getCountry(violation.getUrl())); violationDtos.add(violationDto); }