mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
avoid double callback
This commit is contained in:
@@ -113,7 +113,7 @@ module.exports = WebsocketController =
|
||||
AuthorizationManager.assertClientCanViewProject client, (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()
|
||||
return callback()
|
||||
cursorData.id = client.id
|
||||
cursorData.user_id = user_id if user_id?
|
||||
cursorData.email = email if email?
|
||||
|
||||
Reference in New Issue
Block a user