Skip to content

Commit c86ca3f

Browse files
committed
fix: findByLocalName instead of findByName
1 parent 0e09c29 commit c86ca3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/dev/urner/volodb/service/AddressService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public Address update(int addressId, int volunteerId, Map<String, Object> fields
162162
dbAddress.setCareof(null);
163163
}
164164
if (key.toLowerCase().equals("country")) {
165-
Country dbCountry = countryDAO.findByName(value.toString());
165+
Country dbCountry = countryDAO.findByLocalName(value.toString());
166166
dbAddress.setCountry(dbCountry);
167167
}
168168
if (key.toLowerCase().equals("state")) {

0 commit comments

Comments
 (0)