randydev commited on
Commit
c2f9115
·
verified ·
1 Parent(s): 448cdce

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
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(400).json({ message: "API key is already banned" });
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(