Browse Source

Bugfix/improve handling of missing url in logo service (#4171)

* Improve handling of missing url

* Update changelog
pull/4176/head
Thomas Kaul 2 weeks ago
committed by GitHub
parent
commit
bbbd974be6
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      CHANGELOG.md
  2. 2
      apps/api/src/app/logo/logo.service.ts

4
CHANGELOG.md

@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improved the language localization for German (`de`) - Improved the language localization for German (`de`)
- Refreshed the cryptocurrencies list - Refreshed the cryptocurrencies list
### Fixed
- Improved the handling of a missing url in the endpoint to fetch the logo of an asset or a platform
## 2.132.0 - 2024-12-30 ## 2.132.0 - 2024-12-30
### Added ### Added

2
apps/api/src/app/logo/logo.service.ts

@ -28,7 +28,7 @@ export class LogoService {
{ dataSource, symbol } { dataSource, symbol }
]); ]);
if (!assetProfile) { if (!assetProfile?.url) {
throw new HttpException( throw new HttpException(
getReasonPhrase(StatusCodes.NOT_FOUND), getReasonPhrase(StatusCodes.NOT_FOUND),
StatusCodes.NOT_FOUND StatusCodes.NOT_FOUND

Loading…
Cancel
Save