From 017701867d06e1c910067ecf65eb070e73bb04a2 Mon Sep 17 00:00:00 2001 From: glax Date: Fri, 8 Sep 2023 19:58:44 +0200 Subject: [PATCH] Fixed logic on API GET Jobs/Progress --- Tranga/Server.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/Server.cs b/Tranga/Server.cs index b3b7561..3841a17 100644 --- a/Tranga/Server.cs +++ b/Tranga/Server.cs @@ -177,7 +177,7 @@ public class Server : GlobalBase SendResponse(HttpStatusCode.OK, response, _parent.jobBoss.jobs); break; case "Jobs/Progress": - if (!requestVariables.TryGetValue("jobId", out jobId)) + if (requestVariables.TryGetValue("jobId", out jobId)) { if(!_parent.jobBoss.jobs.Any(jjob => jjob.id == jobId)) SendResponse(HttpStatusCode.BadRequest, response);