mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #186 from overleaf/jpa-fix-join-project-error-context
[misc] fix join project error context
This commit is contained in:
commit
64e659bf43
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,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