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:
parent
ef16242fc4
commit
bdabf49626
@ -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"],
|
||||
|
Loading…
Reference in New Issue
Block a user