Skip to content

Commit

Permalink
fix: STUD-291 Fix for add song to playlist not serializing properly
Browse files Browse the repository at this point in the history
fix: STUD-291 changed uris type from Array to list

fix: STUD-291 changed uris type from Array to list

fix: STUD-291 fixed serialization issue when adding son to playlist

fix: STUD-291 fixed serialization issue when adding son to playlist
  • Loading branch information
saif-software-developer committed Jul 22, 2024
1 parent cd01ce9 commit d1f14c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import kotlinx.serialization.Serializable
@Serializable
data class SpotifyRequest(
@SerialName("uris")
val uris: Array<String>,
val uris: List<String>,
@SerialName("position")
val position: Int,
)
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ internal class OutletReleaseRepositoryImpl(
}
contentType(ContentType.Application.Json)
accept(ContentType.Application.Json)
setBody {
setBody(
SpotifyRequest(
arrayOf(trackUri),
0
uris = listOf("spotify:track:$trackUri"),
position = 0
)
}
)
}
return response
}
Expand Down

0 comments on commit d1f14c9

Please sign in to comment.