diff options
| author | Bond-009 <bond.009@outlook.com> | 2022-01-21 19:50:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-21 19:50:08 +0100 |
| commit | cd675475bc5f37d4b20ed71271b17d0945b3f969 (patch) | |
| tree | ee1a904ed6aacb1a3adc8848280caaf2b5856bc7 /Jellyfin.Api/Controllers/UserViewsController.cs | |
| parent | 34ee6d82fb38b553d0ccd192fb7b2acfe2433c16 (diff) | |
| parent | a60cb280a3d31ba19ffb3a94cf83ef300a7473b7 (diff) | |
Merge pull request #7225 from crobibero/query-result
Diffstat (limited to 'Jellyfin.Api/Controllers/UserViewsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/UserViewsController.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Jellyfin.Api/Controllers/UserViewsController.cs b/Jellyfin.Api/Controllers/UserViewsController.cs index 3d27371f6..04171da8a 100644 --- a/Jellyfin.Api/Controllers/UserViewsController.cs +++ b/Jellyfin.Api/Controllers/UserViewsController.cs @@ -108,11 +108,7 @@ namespace Jellyfin.Api.Controllers var dtos = folders.Select(i => _dtoService.GetBaseItemDto(i, dtoOptions, user)) .ToArray(); - return new QueryResult<BaseItemDto> - { - Items = dtos, - TotalRecordCount = dtos.Length - }; + return new QueryResult<BaseItemDto>(dtos); } /// <summary> |
