mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
[Router] _handleError: joinProject error-context may not have project_id
The ol_context patch changed the priority of client context and rpc context. This lead to the (possibly missing) project_id of the client context overwriting the project_id of the rpc context. REF: f1d55c0a5437a518e9f4617473caed9ba928e648
This commit is contained in:
parent
f935b1881a
commit
8e31cc5c23
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ module.exports = Router = {
|
|||
_handleError(callback, error, client, method, attrs) {
|
||||
attrs = attrs || {}
|
||||
for (const key of ['project_id', 'user_id']) {
|
||||
attrs[key] = client.ol_context[key]
|
||||
attrs[key] = attrs[key] || client.ol_context[key]
|
||||
}
|
||||
attrs.client_id = client.id
|
||||
attrs.err = error
|
||||
|
|
Loading…
Reference in a new issue