randydev commited on
Commit
49579fb
·
verified ·
1 Parent(s): 8f27075

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
index.js CHANGED
@@ -139,8 +139,8 @@ app.get('/testdb', async (req, res) => {
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
  }
145
  }
146
  res.send(userIds);
 
139
  const result = await collection.find({}).toArray();
140
  let userIds = [];
141
  for (const data of result) {
142
+ if (data.owner === "[email protected]") {
143
+ userIds.push(data.key);
144
  }
145
  }
146
  res.send(userIds);