Skip to content

Commit

Permalink
add id in participant info
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitSerrano committed Dec 19, 2024
1 parent cef9404 commit f160ab8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/dashboardController.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ module.exports.fetchDashboardInfo = async (req, res) => {
const participantIds = await conferences.fetchDashboardInfo(config.OVH_ROOM_PHONE_NUMBER, roomNumber)
const participants = await Promise.all(participantIds.map(id => conferences.getParticipant(config.OVH_ROOM_PHONE_NUMBER, roomNumber, id)))
return res.json({
participants: participants.map(({callerNumber, arrivalDateTime, speak, talking}) => {
participants: participants.map(({callerNumber, arrivalDateTime, speak, talking, id}) => {
const date = new Date(arrivalDateTime)
return {
id,
speak,
talking,
arrivalTime: formatLocalTime(date),
Expand Down

0 comments on commit f160ab8

Please sign in to comment.