Update index.js
Browse files
index.js
CHANGED
@@ -143,6 +143,7 @@ app.get('/testdb', async (req, res) => {
|
|
143 |
userIds.push(data.owner);
|
144 |
}
|
145 |
}
|
|
|
146 |
} catch (error) {
|
147 |
console.error("Failed to get data from DB: " + error);
|
148 |
res.status(500).send("Error fetching data from database.");
|
|
|
143 |
userIds.push(data.owner);
|
144 |
}
|
145 |
}
|
146 |
+
res.send(userIds);
|
147 |
} catch (error) {
|
148 |
console.error("Failed to get data from DB: " + error);
|
149 |
res.status(500).send("Error fetching data from database.");
|