dev add user info method by id
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-05-13 07:44:24 +07:00
parent 0314618db5
commit 807a8e1d53
4 changed files with 29 additions and 17 deletions
@@ -37,7 +37,8 @@ public class GeoCountryService {
try {
CountryResponse response = extractCountry(input);
return response.getCountry().getName();
return response.getCountry().getName() == null ? "Not defined":
response.getCountry().getName();
} catch (Exception e) {
log.error("Failed for input: {}", input, e);
return "UNKNOWN";
@@ -83,7 +84,8 @@ public class GeoCountryService {
try {
CountryResponse response = extractCountry(input);
return response.getCountry().getIsoCode();
return response.getCountry().getIsoCode() == null ? "Not defined":
response.getCountry().getIsoCode();
} catch (Exception e) {
log.error("Failed for input: {}", input, e);
return "UNKNOWN";