mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
[misc] run format_fix and lint:fix
This commit is contained in:
@@ -17,7 +17,7 @@ module.exports = HttpController = {
|
||||
first_name,
|
||||
last_name,
|
||||
email,
|
||||
connected_time
|
||||
connected_time,
|
||||
} = ioClient.ol_context
|
||||
const client = {
|
||||
client_id,
|
||||
@@ -26,14 +26,14 @@ module.exports = HttpController = {
|
||||
first_name,
|
||||
last_name,
|
||||
email,
|
||||
connected_time
|
||||
connected_time,
|
||||
}
|
||||
client.rooms = Object.keys(ioClient.manager.roomClients[client_id] || {})
|
||||
// drop the namespace
|
||||
.filter((room) => room !== '')
|
||||
.filter(room => room !== '')
|
||||
// room names are composed as '<NAMESPACE>/<ROOM>' and the default
|
||||
// namespace is empty (see comments in RoomManager), just drop the '/'
|
||||
.map((fullRoomPath) => fullRoomPath.slice(1))
|
||||
.map(fullRoomPath => fullRoomPath.slice(1))
|
||||
return client
|
||||
},
|
||||
|
||||
@@ -53,5 +53,5 @@ module.exports = HttpController = {
|
||||
return
|
||||
}
|
||||
res.json(HttpController._getConnectedClientView(ioClient))
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user