Initializing the link's show'

This commit is contained in:
Zoe Roux 2020-02-12 00:46:46 +01:00
parent 4efceb4238
commit c0abd43aac
2 changed files with 3 additions and 2 deletions

View File

@ -19,9 +19,10 @@ namespace Kyoo.Models
public PeopleLink() {} public PeopleLink() {}
public PeopleLink(People people, string role, string type) public PeopleLink(People people, Show show, string role, string type)
{ {
People = people; People = people;
Show = show;
Role = role; Role = role;
Type = type; Type = type;
} }

View File

@ -124,7 +124,7 @@ namespace Kyoo.Controllers
.Select(x => .Select(x =>
{ {
People existing = _libraryManager.GetPeopleBySlug(x.Slug); People existing = _libraryManager.GetPeopleBySlug(x.Slug);
return existing != null ? new PeopleLink(existing, x.Role, x.Type) : x; return existing != null ? new PeopleLink(existing, show, x.Role, x.Type) : x;
}).ToList(); }).ToList();
return show; return show;
} }