mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Explicitly declare type of devices
Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
parent
7403428864
commit
8a8b2c4380
@ -172,10 +172,9 @@ namespace Jellyfin.Server.Implementations.Devices
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public QueryResult<DeviceInfo> GetDevicesForUser(Guid? userId)
|
public QueryResult<DeviceInfo> GetDevicesForUser(Guid? userId)
|
||||||
{
|
{
|
||||||
var devices = _devices.Values
|
IEnumerable<Device> devices = _devices.Values
|
||||||
.OrderByDescending(d => d.DateLastActivity)
|
.OrderByDescending(d => d.DateLastActivity)
|
||||||
.ThenBy(d => d.DeviceId)
|
.ThenBy(d => d.DeviceId);
|
||||||
.AsEnumerable();
|
|
||||||
|
|
||||||
if (!userId.IsNullOrEmpty())
|
if (!userId.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user