mirror of https://github.com/status-im/codimd.git
refactor: fix lint on lib/realtime.js
Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
parent
2c7459c16e
commit
81cf993358
|
@ -744,8 +744,8 @@ function queueForConnect (socket) {
|
||||||
})
|
})
|
||||||
return socket.disconnect(true)
|
return socket.disconnect(true)
|
||||||
}
|
}
|
||||||
let note = notes[noteId]
|
const note = notes[noteId]
|
||||||
let user = users[socket.id]
|
const user = users[socket.id]
|
||||||
// update user color to author color
|
// update user color to author color
|
||||||
if (note.authors[user.userid]) {
|
if (note.authors[user.userid]) {
|
||||||
user.color = users[socket.id].color = note.authors[user.userid].color
|
user.color = users[socket.id].color = note.authors[user.userid].color
|
||||||
|
@ -766,7 +766,7 @@ function queueForConnect (socket) {
|
||||||
socketClient.registerEventHandler()
|
socketClient.registerEventHandler()
|
||||||
|
|
||||||
if (config.debug) {
|
if (config.debug) {
|
||||||
let noteId = socket.noteId
|
const noteId = socket.noteId
|
||||||
logger.info('SERVER connected a client to [' + noteId + ']:')
|
logger.info('SERVER connected a client to [' + noteId + ']:')
|
||||||
logger.info(JSON.stringify(user))
|
logger.info(JSON.stringify(user))
|
||||||
// logger.info(notes);
|
// logger.info(notes);
|
||||||
|
|
Loading…
Reference in New Issue