randydev commited on
Commit
26eab49
·
1 Parent(s): a705230
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -330,7 +330,7 @@ app.post("/api/v1/api-key-unban", async (req, res) => {
330
  { upsert: false }
331
  );
332
 
333
- if (result.modifiedCount > 0) {
334
  res.json({
335
  message: "API key successfully unbanned",
336
  owner: userIdNumber
 
330
  { upsert: false }
331
  );
332
 
333
+ if (result.matchedCount > 0) {
334
  res.json({
335
  message: "API key successfully unbanned",
336
  owner: userIdNumber