randydev commited on
Commit
5c6f80b
·
verified ·
1 Parent(s): b7f60a1

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
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.");