Update plugins/antiban.js
Browse files- plugins/antiban.js +2 -1
plugins/antiban.js
CHANGED
@@ -275,7 +275,7 @@ AntibanRoutes.get("/api/v1/user/story/task", authenticateApiKey, apiLimiter, asy
|
|
275 |
* 200:
|
276 |
* description: Returns job Has been deleted
|
277 |
*/
|
278 |
-
AntibanRoutes.delete("/api/v1/user/story/:job_id", authenticateApiKey, apiLimiter, async (req, res) => {
|
279 |
const { job_id } = req.params;
|
280 |
|
281 |
const deletedJob = await Job.findOneAndDelete({ job_id });
|
@@ -286,6 +286,7 @@ AntibanRoutes.delete("/api/v1/user/story/:job_id", authenticateApiKey, apiLimite
|
|
286 |
res.json({ message: "Job deleted successfully", job_id });
|
287 |
});
|
288 |
|
|
|
289 |
/**
|
290 |
* @swagger
|
291 |
* /api/v1/user/story/task/{job_id}:
|
|
|
275 |
* 200:
|
276 |
* description: Returns job Has been deleted
|
277 |
*/
|
278 |
+
AntibanRoutes.delete("/api/v1/user/story/task/:job_id", authenticateApiKey, apiLimiter, async (req, res) => {
|
279 |
const { job_id } = req.params;
|
280 |
|
281 |
const deletedJob = await Job.findOneAndDelete({ job_id });
|
|
|
286 |
res.json({ message: "Job deleted successfully", job_id });
|
287 |
});
|
288 |
|
289 |
+
|
290 |
/**
|
291 |
* @swagger
|
292 |
* /api/v1/user/story/task/{job_id}:
|