[mirotalksfu] - fix typo

هذا الالتزام موجود في:
Miroslav Pejic
2024-12-20 22:10:00 +01:00
الأصل 490ad6d614
التزام 7077913a6d
3 ملفات معدلة مع 6 إضافات و6 حذوفات

عرض الملف

@@ -949,16 +949,16 @@ function startServer() {
res.json({
success: true,
totalUsers,
totalRooms,
totalUsers,
});
// log.debug the output if all done
log.debug('MiroTalk get stats - Authorized', {
header: req.headers,
body: req.body,
totalUsers,
totalRooms,
totalUsers,
});
} catch (error) {
console.error('Error fetching stats', error);

عرض الملف

@@ -24,7 +24,7 @@ module.exports = class ServerApi {
getStats(roomList) {
const totalUsers = Array.from(roomList.values()).reduce((total, room) => total + room.peers.size, 0);
const totalRooms = roomList.size;
return { totalUsers, totalRooms };
return { totalRooms, totalUsers };
}
getMeetings(roomList) {

عرض الملف

@@ -61,8 +61,8 @@ describe('test-ServerAPI', () => {
const result = serverApi.getStats(roomList);
result.should.deepEqual({
totalUsers: 3,
totalRooms: 2,
totalUsers: 3,
});
});
@@ -75,8 +75,8 @@ describe('test-ServerAPI', () => {
const result = serverApi.getStats(roomList);
result.should.deepEqual({
totalUsers: 0,
totalRooms: 2,
totalUsers: 0,
});
});
@@ -86,8 +86,8 @@ describe('test-ServerAPI', () => {
const result = serverApi.getStats(roomList);
result.should.deepEqual({
totalUsers: 0,
totalRooms: 0,
totalUsers: 0,
});
});
});