1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-07 21:58:06 -05:00

fix issue with new remote command execution

This commit is contained in:
RaidMax 2022-10-13 13:29:17 -05:00
parent d71bd5ecb6
commit f4fbbffd8a

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);
}
}
}