dev add geo country service
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2026-04-15 10:25:25 +07:00
parent 0bb952c4e6
commit c60aeec6f5
3 changed files with 27 additions and 7 deletions
@@ -121,7 +121,8 @@ public class ViolationHandler implements RequestHandler {
for (Violation violation : content) {
ViolationResponse.ViolationDto violationDto = ViolationResponse.ViolationDto.fromEntity(violation);
violationDto.setCountry(geoCountryService.getCountry(violation.getPageUrl()));
violationDto.setCountry(geoCountryService.getCountryName(violation.getPageUrl()));
violationDto.setCountryCode(geoCountryService.getCountryCode(violation.getPageUrl()));
violationDtos.add(violationDto);
}