Skip to content

Commit a3a3db2

Browse files
committed
fix: Update city export key from 'iso2' to 'state_code' for consistency
1 parent 9c463d3 commit a3a3db2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/Commands/ExportJson.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
176176
$citiesArray[$j]['id'] = $cityId;
177177
$citiesArray[$j]['name'] = $cityName;
178178
$citiesArray[$j]['state_id'] = (int)$stateId;
179-
$citiesArray[$j]['iso2'] = $city['iso2'];
179+
$citiesArray[$j]['state_code'] = $city['state_code'];
180180
$citiesArray[$j]['state_name'] = $stateName;
181181
$citiesArray[$j]['country_id'] = (int)$countryId;
182182
$citiesArray[$j]['country_code'] = $city['country_code'];

0 commit comments

Comments
 (0)