Update index.js
Browse files
index.js
CHANGED
@@ -426,7 +426,7 @@ app.post("/api/v1/key/api-key-ban", authenticateApiKey, apiLimiter, async (req,
|
|
426 |
}
|
427 |
|
428 |
if (existingUser.is_banned === true || existingUserTwo.is_banned === true) {
|
429 |
-
return res.status(
|
430 |
}
|
431 |
|
432 |
const resultTwo = await ApiKey.updateOne(
|
|
|
426 |
}
|
427 |
|
428 |
if (existingUser.is_banned === true || existingUserTwo.is_banned === true) {
|
429 |
+
return res.status(200).json({ message: "API key is already banned" });
|
430 |
}
|
431 |
|
432 |
const resultTwo = await ApiKey.updateOne(
|