randydev commited on
Commit
0a4ce22
·
verified ·
1 Parent(s): 5cec55d

Update index.js

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