Remove unnecessary query class

This commit is contained in:
Patrick Barron
2021-05-20 20:39:22 -04:00
parent a225f34796
commit e1f7086077
4 changed files with 9 additions and 33 deletions

View File

@@ -51,8 +51,7 @@ namespace Jellyfin.Api.Controllers
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<QueryResult<DeviceInfo>>> GetDevices([FromQuery] bool? supportsSync, [FromQuery] Guid? userId)
{
var deviceQuery = new DeviceQuery { SupportsSync = supportsSync, UserId = userId ?? Guid.Empty };
return await _deviceManager.GetDevices(deviceQuery);
return await _deviceManager.GetDevicesForUser(userId, supportsSync);
}
/// <summary>