randydev commited on
Commit
d47b766
·
verified ·
1 Parent(s): 2991639

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
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
  }