Merge pull request #186 from overleaf/jpa-fix-join-project-error-context
[misc] fix join project error context
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user