Move to version string also for /Api/ASF/Update

This commit is contained in:
JustArchi
2019-10-05 15:40:32 +02:00
parent 998757bafc
commit 012290e61d
2 changed files with 4 additions and 4 deletions

2
ASF-ui

Submodule ASF-ui updated: a8cf73abe4...7271f9bdd2

View File

@@ -124,15 +124,15 @@ namespace ArchiSteamFarm.IPC.Controllers.Api {
/// Makes ASF update itself.
/// </summary>
[HttpPost("Update")]
[ProducesResponseType(typeof(GenericResponse<Version>), (int) HttpStatusCode.OK)]
public async Task<ActionResult<GenericResponse<Version>>> UpdatePost() {
[ProducesResponseType(typeof(GenericResponse<string>), (int) HttpStatusCode.OK)]
public async Task<ActionResult<GenericResponse<string>>> UpdatePost() {
(bool success, string message, Version version) = await Actions.Update().ConfigureAwait(false);
if (string.IsNullOrEmpty(message)) {
message = success ? Strings.Success : Strings.WarningFailed;
}
return Ok(new GenericResponse<Version>(success, message, version));
return Ok(new GenericResponse<string>(success, message, version.ToString()));
}
}
}