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