Update index.js
Browse files
index.js
CHANGED
@@ -541,7 +541,7 @@ app.post("/api/v1/key/ban-and-delete", authenticateApiKey, apiLimiter, async (re
|
|
541 |
await bannedCollection.insertOne({ user_id: userIdNumber, bannedAt: new Date() });
|
542 |
await apiKeysCollection.deleteMany({ owner: userIdNumber });
|
543 |
|
544 |
-
return res.status(200).json({ message: "User permanently banned and API keys deleted" });
|
545 |
} catch (error) {
|
546 |
res.status(500).json({ error: `Failed to ban user and delete API keys: ${error.message}` });
|
547 |
}
|
|
|
541 |
await bannedCollection.insertOne({ user_id: userIdNumber, bannedAt: new Date() });
|
542 |
await apiKeysCollection.deleteMany({ owner: userIdNumber });
|
543 |
|
544 |
+
return res.status(200).json({ message: "User permanently banned and API keys deleted\n\nYour account has been permanently deleted, and you are no longer allowed to create an API key\n\nIf you believe this was a mistake or need further assistance, please contact @xpushz." });
|
545 |
} catch (error) {
|
546 |
res.status(500).json({ error: `Failed to ban user and delete API keys: ${error.message}` });
|
547 |
}
|