2
0

Fixed logic on API GET Jobs/Progress

This commit is contained in:
glax 2023-09-08 19:58:44 +02:00
parent c3d62bd337
commit 017701867d

View File

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