From 012290e61dbe4f23e32da551f9638aa570c264f4 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sat, 5 Oct 2019 15:40:32 +0200 Subject: [PATCH] Move to version string also for /Api/ASF/Update --- ASF-ui | 2 +- ArchiSteamFarm/IPC/Controllers/Api/ASFController.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ASF-ui b/ASF-ui index a8cf73abe..7271f9bdd 160000 --- a/ASF-ui +++ b/ASF-ui @@ -1 +1 @@ -Subproject commit a8cf73abe4b90954ef8010c0d7b6e4f2359e2629 +Subproject commit 7271f9bdd22ebf388cfa0cf819c06383eea506b6 diff --git a/ArchiSteamFarm/IPC/Controllers/Api/ASFController.cs b/ArchiSteamFarm/IPC/Controllers/Api/ASFController.cs index f25be92ca..882b95325 100644 --- a/ArchiSteamFarm/IPC/Controllers/Api/ASFController.cs +++ b/ArchiSteamFarm/IPC/Controllers/Api/ASFController.cs @@ -124,15 +124,15 @@ namespace ArchiSteamFarm.IPC.Controllers.Api { /// Makes ASF update itself. /// [HttpPost("Update")] - [ProducesResponseType(typeof(GenericResponse), (int) HttpStatusCode.OK)] - public async Task>> UpdatePost() { + [ProducesResponseType(typeof(GenericResponse), (int) HttpStatusCode.OK)] + public async Task>> 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(success, message, version)); + return Ok(new GenericResponse(success, message, version.ToString())); } } }