mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-14 13:03:00 +03:00
Properly populate QueryResult
This commit is contained in:
@@ -124,11 +124,7 @@ namespace Jellyfin.Api.Controllers
|
||||
var dtoOptions = new DtoOptions().AddClientFields(Request);
|
||||
var dtos = items.Select(i => _dtoService.GetBaseItemDto(i, dtoOptions, user)).ToArray();
|
||||
|
||||
return new QueryResult<BaseItemDto>
|
||||
{
|
||||
Items = dtos,
|
||||
TotalRecordCount = dtos.Length
|
||||
};
|
||||
return new QueryResult<BaseItemDto>(dtos);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user