From f160ab835e033b47826b5d0514f0bbe072f1ac00 Mon Sep 17 00:00:00 2001 From: Benoit Serrano Date: Thu, 19 Dec 2024 16:52:59 +0100 Subject: [PATCH] add id in participant info --- controllers/dashboardController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/dashboardController.js b/controllers/dashboardController.js index 3cf6e095..aad0d832 100644 --- a/controllers/dashboardController.js +++ b/controllers/dashboardController.js @@ -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),