mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Return empty lists for people instead of throwing
This commit is contained in:
parent
edf2941e01
commit
9ce8043667
@ -152,7 +152,7 @@ namespace Kyoo.Core.Controllers
|
||||
Sort<PeopleRole> sort = default,
|
||||
Pagination limit = default)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
return Task.FromResult<ICollection<PeopleRole>>(new List<PeopleRole>());
|
||||
// ICollection<PeopleRole> people = await ApplyFilters(_database.PeopleRoles
|
||||
// .Where(x => x.ShowID == showID)
|
||||
// .Include(x => x.People),
|
||||
@ -173,7 +173,7 @@ namespace Kyoo.Core.Controllers
|
||||
Sort<PeopleRole> sort = default,
|
||||
Pagination limit = default)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
return Task.FromResult<ICollection<PeopleRole>>(new List<PeopleRole>());
|
||||
// ICollection<PeopleRole> people = await ApplyFilters(_database.PeopleRoles
|
||||
// .Where(x => x.Show.Slug == showSlug)
|
||||
// .Include(x => x.People)
|
||||
@ -196,7 +196,7 @@ namespace Kyoo.Core.Controllers
|
||||
Sort<PeopleRole> sort = default,
|
||||
Pagination limit = default)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
return Task.FromResult<ICollection<PeopleRole>>(new List<PeopleRole>());
|
||||
// ICollection<PeopleRole> roles = await ApplyFilters(_database.PeopleRoles
|
||||
// .Where(x => x.PeopleID == id)
|
||||
// .Include(x => x.Show),
|
||||
@ -216,7 +216,7 @@ namespace Kyoo.Core.Controllers
|
||||
Sort<PeopleRole> sort = default,
|
||||
Pagination limit = default)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
return Task.FromResult<ICollection<PeopleRole>>(new List<PeopleRole>());
|
||||
// ICollection<PeopleRole> roles = await ApplyFilters(_database.PeopleRoles
|
||||
// .Where(x => x.People.Slug == slug)
|
||||
// .Include(x => x.Show),
|
||||
|
Loading…
x
Reference in New Issue
Block a user