This commit is contained in:
2020-04-06 00:18:02 +00:00
parent eb287aa1e7
commit cbf6d9ae3d

View File

@@ -86,7 +86,8 @@ namespace AyaNova.Api.Controllers
//Log
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserIdFromContext.Id(HttpContext.Items), 0, AyaType.ServerState, AyaEvent.ServerStateChange, $"{state.ServerState}-{state.Reason}"), ct);
return NoContent();
return Ok(ApiOkResponse.Response(new ServerStateModel() { ServerState = serverState.GetState().ToString(), Reason = serverState.Reason }, false));
}