randydev commited on
Commit
763fd09
·
verified ·
1 Parent(s): f93f9c6

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -171,7 +171,7 @@ app.post("/v1/revoked-key", async (req, res) => {
171
  );
172
 
173
  if (result.modifiedCount > 0) {
174
- res.json({ message: "API key successfully revoked and regenerated", apiKey: newKey, createdAt: new Date() });
175
  } else {
176
  res.status(500).json({ error: "Failed to update API key" });
177
  }
 
171
  );
172
 
173
  if (result.modifiedCount > 0) {
174
+ res.json({ message: "API key successfully revoked and regenerated", apiKey: newKey, createdAt: new Date() });
175
  } else {
176
  res.status(500).json({ error: "Failed to update API key" });
177
  }