Update Jellyfin.Server.Implementations/Devices/DeviceManager.cs

Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
Patrick Barron 2021-06-26 15:17:57 -04:00 committed by GitHub
parent befedaf6fc
commit 5d1139ec62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,6 +168,7 @@ namespace Jellyfin.Server.Implementations.Devices
{
await using var dbContext = _dbProvider.CreateContext();
var sessions = dbContext.Devices
.Include(d => d.User)
.AsQueryable()
.OrderBy(d => d.DeviceId)
.ThenByDescending(d => d.DateLastActivity)