mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 04:01:42 +00:00
avoid double callback
This commit is contained in:
parent
51939512ac
commit
9ab19c5d03
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ module.exports = WebsocketController =
|
||||||
AuthorizationManager.assertClientCanViewProject client, (error) ->
|
AuthorizationManager.assertClientCanViewProject client, (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."
|
logger.warn {client_id: client.id, project_id, user_id}, "silently ignoring unauthorized updateClientPosition. Client likely hasn't called joinProject yet."
|
||||||
callback()
|
return 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