randydev commited on
Commit
5f62b27
·
verified ·
1 Parent(s): 9d8015c

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -294,7 +294,7 @@ app.post("/api/v2/key/upgrade-key", authenticateApiKey, apiLimiter, async (req,
294
  }
295
 
296
  if (!existingUser) {
297
- return res.status(404).json({ error: "API key not found" });
298
  }
299
 
300
  const expirationDate = new Date();
 
294
  }
295
 
296
  if (!existingUser) {
297
+ return res.status(404).json({ error: "API key expired and deleted. Generate a new key." });
298
  }
299
 
300
  const expirationDate = new Date();