[mirotalksfu] - add timestamp to stats, fix api doc

هذا الالتزام موجود في:
Miroslav Pejic
2024-12-21 11:23:21 +01:00
الأصل 3e2708c21b
التزام 0f451901c4
7 ملفات معدلة مع 27 إضافات و24 حذوفات

عرض الملف

@@ -55,7 +55,7 @@ dev dependencies: {
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.6.54
* @version 1.6.55
*
*/
@@ -945,10 +945,11 @@ function startServer() {
return res.status(403).json({ error: 'Unauthorized!' });
}
const { totalRooms, totalUsers } = api.getStats(roomList);
const { timestamp, totalRooms, totalUsers } = api.getStats(roomList);
res.json({
success: true,
timestamp,
totalRooms,
totalUsers,
});
@@ -957,6 +958,7 @@ function startServer() {
log.debug('MiroTalk get stats - Authorized', {
header: req.headers,
body: req.body,
timestamp,
totalRooms,
totalUsers,
});