From 675050b7a40b82b6c4d9e372de4cf5240f5d82f3 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Tue, 1 Apr 2025 19:00:20 +0200 Subject: [PATCH] testapp: Refactor room-related terminology from 'roomName' to 'roomId' in homeController and views --- testapp/controllers/homeController.js | 4 ++-- testapp/views/home.mustache | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/testapp/controllers/homeController.js b/testapp/controllers/homeController.js index ab24301..8a4ca31 100644 --- a/testapp/controllers/homeController.js +++ b/testapp/controllers/homeController.js @@ -18,14 +18,14 @@ export const renderHomePage = async (req, res) => { export const createRoom = async (req, res) => { try { // Extract values from request body - const { roomNamePrefix, expirationDate } = req.body + const { roomIdPrefix, expirationDate } = req.body // Request to create a new room const response = await fetch(`${process.env.OPENVIDU_MEET_URL}/rooms`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ - roomNamePrefix, + roomIdPrefix, expirationDate: new Date(expirationDate).getTime() }) }) diff --git a/testapp/views/home.mustache b/testapp/views/home.mustache index ca06802..5b359aa 100644 --- a/testapp/views/home.mustache +++ b/testapp/views/home.mustache @@ -27,7 +27,7 @@