diff --git a/WebfrontCore/Controllers/ConsoleController.cs b/WebfrontCore/Controllers/ConsoleController.cs index 75d606e0c..254e52346 100644 --- a/WebfrontCore/Controllers/ConsoleController.cs +++ b/WebfrontCore/Controllers/ConsoleController.cs @@ -35,7 +35,7 @@ namespace WebfrontCore.Controllers { var server = Manager.GetServers().First(s => s.EndPoint == serverId); var response = await _remoteCommandService.Execute(Client.ClientId, null, command, Enumerable.Empty(), server); - return response.Any() ? StatusCode(400, response) : Ok(response); + return !response.Any() ? StatusCode(400, response) : Ok(response); } } }