randydev commited on
Commit
e7fe24a
·
1 Parent(s): 9380f30
Files changed (1) hide show
  1. index.js +1 -1
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