fix: update country_id during state sync

- Add assignment for country_id in state update

This change ensures that the country_id is correctly set when
updating state information, improving the accuracy of the
data synchronization process.
This commit is contained in:
songtianlun 2025-02-26 10:35:38 +08:00
parent ef16242fc4
commit bdabf49626

View File

@ -138,6 +138,7 @@ namespace :geo do
end
state.update!(
country_id: country&.id,
country_code: country&.code,
fips_code: data["fips_code"],
iso2: data["iso2"],