Fixed logic on API GET Jobs/Progress
This commit is contained in:
parent
c3d62bd337
commit
017701867d
@ -177,7 +177,7 @@ public class Server : GlobalBase
|
|||||||
SendResponse(HttpStatusCode.OK, response, _parent.jobBoss.jobs);
|
SendResponse(HttpStatusCode.OK, response, _parent.jobBoss.jobs);
|
||||||
break;
|
break;
|
||||||
case "Jobs/Progress":
|
case "Jobs/Progress":
|
||||||
if (!requestVariables.TryGetValue("jobId", out jobId))
|
if (requestVariables.TryGetValue("jobId", out jobId))
|
||||||
{
|
{
|
||||||
if(!_parent.jobBoss.jobs.Any(jjob => jjob.id == jobId))
|
if(!_parent.jobBoss.jobs.Any(jjob => jjob.id == jobId))
|
||||||
SendResponse(HttpStatusCode.BadRequest, response);
|
SendResponse(HttpStatusCode.BadRequest, response);
|
||||||
|
Loading…
Reference in New Issue
Block a user