update
Browse files
index.js
CHANGED
@@ -403,7 +403,7 @@ app.post("/api/v1/api-key-ban", async (req, res) => {
|
|
403 |
return res.status(404).json({ error: "API key not found" });
|
404 |
}
|
405 |
|
406 |
-
if (existingUser.is_banned === true) {
|
407 |
return res.status(400).json({ message: "API key is already banned" });
|
408 |
}
|
409 |
|
|
|
403 |
return res.status(404).json({ error: "API key not found" });
|
404 |
}
|
405 |
|
406 |
+
if (existingUser.is_banned === true || existingUserTwo.is_banned === true) {
|
407 |
return res.status(400).json({ message: "API key is already banned" });
|
408 |
}
|
409 |
|