mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-28 04:22:36 +00:00
Don't be so verbose with client update errors
This commit is contained in:
parent
43a008c0bc
commit
d62dc7ca3a
1 changed files with 3 additions and 1 deletions
|
@ -115,7 +115,9 @@ module.exports = WebsocketController =
|
||||||
logger.log {user_id, project_id, client_id: client.id, cursorData: cursorData}, "updating client position"
|
logger.log {user_id, project_id, client_id: client.id, cursorData: cursorData}, "updating client position"
|
||||||
|
|
||||||
AuthorizationManager.assertClientCanViewProject client, (error) ->
|
AuthorizationManager.assertClientCanViewProject client, (error) ->
|
||||||
return callback(error) if error?
|
if error?
|
||||||
|
logger.warn {client_id: client.id, project_id, user_id}, "silently ignoring unauthorized updateClientPosition. Client likely hasn't called joinProject yet."
|
||||||
|
callback()
|
||||||
cursorData.id = client.id
|
cursorData.id = client.id
|
||||||
cursorData.user_id = user_id if user_id?
|
cursorData.user_id = user_id if user_id?
|
||||||
cursorData.email = email if email?
|
cursorData.email = email if email?
|
||||||
|
|
Loading…
Reference in a new issue