randydev commited on
Commit
0114ae9
·
verified ·
1 Parent(s): 48c8578

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -75,7 +75,7 @@ app.use(express.static('public'));
75
 
76
  app.post('/generate-key', async (req, res) => {
77
  const dbClient = new Database("AkenoXJs", "FastJsAPI");
78
- const collection = dbClient.collection('apiKeys'); // Specify collection name
79
  try {
80
  const newKey = myUUID;
81
  await collection.insertOne({
 
75
 
76
  app.post('/generate-key', async (req, res) => {
77
  const dbClient = new Database("AkenoXJs", "FastJsAPI");
78
+ const collection = dbClient.collection('api_keys');
79
  try {
80
  const newKey = myUUID;
81
  await collection.insertOne({