Updated Search2 Artist result to use Index instead of Artist

(As needed for listing the Artist's albums afterwards)
This commit is contained in:
Nite 2022-03-15 10:31:38 +01:00
parent c81c685800
commit 6bfd06c6a0
No known key found for this signature in database
GPG Key ID: 1D1AD59B1C6386C1
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ fun APISearchResult.toDomainEntity(): SearchResult = SearchResult(
)
fun SearchTwoResult.toDomainEntity(): SearchResult = SearchResult(
this.artistList.map { it.toDomainEntity() },
this.artistList.map { it.toIndexEntity() },
this.albumList.map { it.toDomainEntity() },
this.songList.map { it.toTrackEntity() }
)