From 3319960149296988086a8593b1a3ae326a63dca9 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Wed, 4 Sep 2024 08:39:32 -0600 Subject: [PATCH] Did stuff --- index.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/index.js b/index.js index 0c99ad4..e4edcf7 100644 --- a/index.js +++ b/index.js @@ -103,13 +103,6 @@ app.get("/api/poll/:jobid/:id", (req, res) => { }) app.delete("/api/close/:jobid/:id", (req, res) => { - if (ws_[req.params.id].jobid !== req.params.jobid) { - res.status(401).send({ - success: false, - message: "Invalid job ID" - }); - return; - } var id = req.params.id; ws_[id].connection.terminate(); delete ws_[id];