diff --git a/seasoned_api/src/tmdb/types/person.js b/seasoned_api/src/tmdb/types/person.js index 45df6c9..798dff9 100644 --- a/seasoned_api/src/tmdb/types/person.js +++ b/seasoned_api/src/tmdb/types/person.js @@ -12,12 +12,12 @@ class Person { } static convertFromTmdbResponse(response) { - const { id, name, poster, birthday, deathday, adult, known_for_department } = response; + const { id, name, profile_path, birthday, deathday, adult, known_for_department } = response; const birthDay = new Date(birthday) const deathDay = deathday ? new Date(deathday) : null - return new Person(id, name, poster, birthDay, deathDay, adult, known_for_department) + return new Person(id, name, profile_path, birthDay, deathDay, adult, known_for_department) } createJsonResponse() {