Skip to content

Commit

Permalink
adding hotfix for countries list
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Jul 10, 2024
1 parent 638167c commit 7773cd2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.

This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/).

## [8.0.7]

### Fixed
- Countries get list pulled the data from the wrong manifest cache file.

## [8.0.6]

### Fixed
Expand Down Expand Up @@ -581,6 +586,7 @@ Init setup

[Unreleased]: https://github.com/infinum/eightshift-libs/compare/main...HEAD

[8.0.7]: https://github.com/infinum/eightshift-libs/compare/8.0.6...8.0.7
[8.0.6]: https://github.com/infinum/eightshift-libs/compare/8.0.5...8.0.6
[8.0.5]: https://github.com/infinum/eightshift-libs/compare/8.0.4...8.0.5
[8.0.4]: https://github.com/infinum/eightshift-libs/compare/8.0.3...8.0.4
Expand Down
2 changes: 1 addition & 1 deletion src/Geolocation/AbstractGeolocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function getCountries(): array
],
];

$data = $this->manifestCache->getManifestCacheTopItem(AbstractManifestCache::ASSETS_KEY, AbstractManifestCache::TYPE_ASSETS);
$data = $this->manifestCache->getManifestCacheTopItem(AbstractManifestCache::COUNTRIES_KEY, AbstractManifestCache::TYPE_GEOLOCATION);

foreach ($data as $country) {
$code = $country['Code'] ?? '';
Expand Down

0 comments on commit 7773cd2

Please sign in to comment.