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