Updated Search2 Artist result to use Index instead of Artist
(As needed for listing the Artist's albums afterwards)
This commit is contained in:
parent
c81c685800
commit
6bfd06c6a0
|
@ -13,7 +13,7 @@ fun APISearchResult.toDomainEntity(): SearchResult = SearchResult(
|
||||||
)
|
)
|
||||||
|
|
||||||
fun SearchTwoResult.toDomainEntity(): SearchResult = SearchResult(
|
fun SearchTwoResult.toDomainEntity(): SearchResult = SearchResult(
|
||||||
this.artistList.map { it.toDomainEntity() },
|
this.artistList.map { it.toIndexEntity() },
|
||||||
this.albumList.map { it.toDomainEntity() },
|
this.albumList.map { it.toDomainEntity() },
|
||||||
this.songList.map { it.toTrackEntity() }
|
this.songList.map { it.toTrackEntity() }
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue