mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-31 14:33:54 -04:00
Remove unneeded Ok calls.
This commit is contained in:
parent
927696c403
commit
4d894c4344
@ -74,7 +74,7 @@ namespace Jellyfin.Api.Controllers
|
|||||||
return NotFound();
|
return NotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
return Ok(deviceInfo);
|
return deviceInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -86,7 +86,7 @@ namespace Jellyfin.Api.Controllers
|
|||||||
[Authenticated(Roles = "Admin")]
|
[Authenticated(Roles = "Admin")]
|
||||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||||
public ActionResult<DeviceInfo> GetDeviceOptions([FromQuery, BindRequired] string id)
|
public ActionResult<DeviceOptions> GetDeviceOptions([FromQuery, BindRequired] string id)
|
||||||
{
|
{
|
||||||
var deviceInfo = _deviceManager.GetDeviceOptions(id);
|
var deviceInfo = _deviceManager.GetDeviceOptions(id);
|
||||||
if (deviceInfo == null)
|
if (deviceInfo == null)
|
||||||
@ -94,7 +94,7 @@ namespace Jellyfin.Api.Controllers
|
|||||||
return NotFound();
|
return NotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
return Ok(deviceInfo);
|
return deviceInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -150,7 +150,7 @@ namespace Jellyfin.Api.Controllers
|
|||||||
public ActionResult<ContentUploadHistory> GetCameraUploads([FromQuery, BindRequired] string id)
|
public ActionResult<ContentUploadHistory> GetCameraUploads([FromQuery, BindRequired] string id)
|
||||||
{
|
{
|
||||||
var uploadHistory = _deviceManager.GetCameraUploadHistory(id);
|
var uploadHistory = _deviceManager.GetCameraUploadHistory(id);
|
||||||
return Ok(uploadHistory);
|
return uploadHistory;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user