Fix warnings

This commit is contained in:
Zoe Roux 2023-03-13 22:00:31 +09:00
parent b62af8d2ae
commit da17fc3e6d
3 changed files with 20 additions and 24 deletions

View File

@ -148,7 +148,7 @@ namespace Kyoo.Core.Controllers
} }
/// <inheritdoc /> /// <inheritdoc />
public async Task<ICollection<PeopleRole>> GetFromShow(int showID, public Task<ICollection<PeopleRole>> GetFromShow(int showID,
Expression<Func<PeopleRole, bool>> where = null, Expression<Func<PeopleRole, bool>> where = null,
Sort<PeopleRole> sort = default, Sort<PeopleRole> sort = default,
Pagination limit = default) Pagination limit = default)
@ -169,7 +169,7 @@ namespace Kyoo.Core.Controllers
} }
/// <inheritdoc /> /// <inheritdoc />
public async Task<ICollection<PeopleRole>> GetFromShow(string showSlug, public Task<ICollection<PeopleRole>> GetFromShow(string showSlug,
Expression<Func<PeopleRole, bool>> where = null, Expression<Func<PeopleRole, bool>> where = null,
Sort<PeopleRole> sort = default, Sort<PeopleRole> sort = default,
Pagination limit = default) Pagination limit = default)
@ -192,7 +192,7 @@ namespace Kyoo.Core.Controllers
} }
/// <inheritdoc /> /// <inheritdoc />
public async Task<ICollection<PeopleRole>> GetFromPeople(int id, public Task<ICollection<PeopleRole>> GetFromPeople(int id,
Expression<Func<PeopleRole, bool>> where = null, Expression<Func<PeopleRole, bool>> where = null,
Sort<PeopleRole> sort = default, Sort<PeopleRole> sort = default,
Pagination limit = default) Pagination limit = default)
@ -212,7 +212,7 @@ namespace Kyoo.Core.Controllers
} }
/// <inheritdoc /> /// <inheritdoc />
public async Task<ICollection<PeopleRole>> GetFromPeople(string slug, public Task<ICollection<PeopleRole>> GetFromPeople(string slug,
Expression<Func<PeopleRole, bool>> where = null, Expression<Func<PeopleRole, bool>> where = null,
Sort<PeopleRole> sort = default, Sort<PeopleRole> sort = default,
Pagination limit = default) Pagination limit = default)

View File

@ -82,19 +82,15 @@ namespace Kyoo.Core.Controllers
} }
/// <inheritdoc /> /// <inheritdoc />
public Task<ICollection<MetadataID>> GetMetadataID<T>(Expression<Func<MetadataID, bool>> where = null, public async Task<ICollection<MetadataID>> GetMetadataID<T>(Expression<Func<MetadataID, bool>> where = null,
Sort<MetadataID> sort = default, Sort<MetadataID> sort = default,
Pagination limit = default) Pagination limit = default)
where T : class, IMetadata where T : class, IMetadata
{ {
throw new NotImplementedException(); return await _database.MetadataIds<T>()
// return ApplyFilters(_database.MetadataIds<T>() .Include(y => y.Provider)
// .Include(y => y.Provider), .Where(where)
// x => _database.MetadataIds<T>().FirstOrDefaultAsync(y => y.ResourceID == x), .ToListAsync();
// x => x.ResourceID,
// where,
// sort,
// limit);
} }
} }
} }

View File

@ -62,7 +62,6 @@ namespace Kyoo.Core
break; break;
} }
} }
}
/// <inheritdoc /> /// <inheritdoc />
public class ServerErrorObjectResult : ObjectResult public class ServerErrorObjectResult : ObjectResult
@ -78,3 +77,4 @@ namespace Kyoo.Core
} }
} }
} }
}