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