Merge remote-tracking branch 'origin/authenticationdb-efcore' into authenticationdb-efcore

This commit is contained in:
Patrick Barron
2021-06-27 16:46:09 -04:00
3 changed files with 28 additions and 3 deletions

View File

@@ -170,6 +170,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)