fix issue with new remote command execution
This commit is contained in:
parent
069e6a0517
commit
0ce9dec3ea
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user