Update plugins/antiban.js
Browse files- 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.
|
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({
|