randydev commited on
Commit
8f27075
·
verified ·
1 Parent(s): 0a4ce22

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
index.js CHANGED
@@ -137,8 +137,8 @@ app.get('/testdb', async (req, res) => {
137
  const collection = dbClient.collection("api_keys");
138
  try {
139
  const result = await collection.find({}).toArray();
140
- const userIds = [];
141
- for (const data of results) {
142
  if (data.owner !== undefined) {
143
  userIds.push(data.owner);
144
  }
 
137
  const collection = dbClient.collection("api_keys");
138
  try {
139
  const result = await collection.find({}).toArray();
140
+ let userIds = [];
141
+ for (const data of result) {
142
  if (data.owner !== undefined) {
143
  userIds.push(data.owner);
144
  }