Update index.js
Browse files
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
|
143 |
-
userIds.push(data.
|
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);
|