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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
5 additions and
1 deletions
-
CHANGELOG.md
-
apps/api/src/app/logo/logo.service.ts
|
|
@ -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`) |
|
|
|
- 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 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
@ -28,7 +28,7 @@ export class LogoService { |
|
|
|
{ dataSource, symbol } |
|
|
|
]); |
|
|
|
|
|
|
|
if (!assetProfile) { |
|
|
|
if (!assetProfile?.url) { |
|
|
|
throw new HttpException( |
|
|
|
getReasonPhrase(StatusCodes.NOT_FOUND), |
|
|
|
StatusCodes.NOT_FOUND |
|
|
|