randydev commited on
Commit
9f2f5ae
·
verified ·
1 Parent(s): f87cf87

Update plugins/antiban.js

Browse files
Files changed (1) hide show
  1. plugins/antiban.js +2 -2
plugins/antiban.js CHANGED
@@ -49,7 +49,7 @@ const TelegramUserStoryDL = async (user_id) => {
49
  * tags: [User]
50
  * parameters:
51
  * - in: query
52
- * name: user_id
53
  * required: true
54
  * description: null
55
  * schema:
@@ -67,7 +67,7 @@ const TelegramUserStoryDL = async (user_id) => {
67
  AntibanRoutes.get("/api/v1/user/story-dl", authenticateApiKey, apiLimiter, async (req, res) => {
68
  const Links = req.query.link;
69
  if (!Links) {
70
- return res.status(400).json({ error: "Invalid or missing user_id" });
71
  }
72
 
73
  try {
 
49
  * tags: [User]
50
  * parameters:
51
  * - in: query
52
+ * name: link
53
  * required: true
54
  * description: null
55
  * schema:
 
67
  AntibanRoutes.get("/api/v1/user/story-dl", authenticateApiKey, apiLimiter, async (req, res) => {
68
  const Links = req.query.link;
69
  if (!Links) {
70
+ return res.status(400).json({ error: "Invalid or missing link" });
71
  }
72
 
73
  try {