Merge pull request #186 from overleaf/jpa-fix-join-project-error-context

[misc] fix join project error context
This commit is contained in:
Jakob Ackermann 2020-08-25 11:46:18 +02:00 committed by GitHub
commit 64e659bf43

View file

@ -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