fix issue with new remote command execution

This commit is contained in:
RaidMax 2022-10-13 13:29:17 -05:00
parent 069e6a0517
commit 0ce9dec3ea

View File

@ -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<string>(), server);
return response.Any() ? StatusCode(400, response) : Ok(response);
return !response.Any() ? StatusCode(400, response) : Ok(response);
}
}
}