randydev commited on
Commit
84e762c
·
verified ·
1 Parent(s): 964b9b6

Update plugins/antiban.js

Browse files
Files changed (1) hide show
  1. plugins/antiban.js +1 -1
plugins/antiban.js CHANGED
@@ -251,7 +251,7 @@ AntibanRoutes.get("/api/v1/user/story-dl", authenticateApiKey, apiLimiter, async
251
  });
252
 
253
  AntibanRoutes.get("/api/v1/user/story/:job_id", authenticateApiKey, apiLimiter, async (req, res) => {
254
- const job = await Job.findOne({ job_id: req.params.job_id });
255
 
256
  if (!job) return res.status(404).json({ error: "Job not found" });
257
  res.json({
 
251
  });
252
 
253
  AntibanRoutes.get("/api/v1/user/story/:job_id", authenticateApiKey, apiLimiter, async (req, res) => {
254
+ const job = await Job.findOne({ job_id: req.query.job_id });
255
 
256
  if (!job) return res.status(404).json({ error: "Job not found" });
257
  res.json({