Update index.js
Browse files
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
|
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();
|