randydev commited on
Commit
98b22d2
·
verified ·
1 Parent(s): c388a7a

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -86,7 +86,7 @@ app.get("/v1/show-key", async (req, res) => {
86
  const collection = dbClient.collection('api_keys');
87
  const apiKey = req.query.api_key;
88
  try {
89
- DocsKey = await collection.findOne({key: apiKey})
90
  if (DocsKey) {
91
  let owner = DocsKey.owner;
92
  let createdAt = DocsKey.createdAt;
 
86
  const collection = dbClient.collection('api_keys');
87
  const apiKey = req.query.api_key;
88
  try {
89
+ const DocsKey = await collection.findOne({key: apiKey})
90
  if (DocsKey) {
91
  let owner = DocsKey.owner;
92
  let createdAt = DocsKey.createdAt;