Skip to content

Commit 5746aa0

Browse files
committed
update model for tv show recommendation API
1 parent 30eb794 commit 5746aa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/TVShowRecommender.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public struct TVShowRecommender {
4949
}
5050

5151
if let decodedResponse = try? JSONDecoder().decode(SimilarShows.self, from: data) {
52-
let shows = decodedResponse.similarShow.compactMap { (key, value) in
52+
let shows = decodedResponse.recommendations.compactMap { (key, value) in
5353
return TVShow(id: key, name: value)
5454
}
5555
completion(shows)

0 commit comments

Comments
 (0)