Bugfix/improve handling of missing url in logo service (#4171)
* Improve handling of missing url * Update changelog
This commit is contained in:
parent
1cf7ffdee8
commit
bbbd974be6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user