[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:
Jakob Ackermann 2020-08-20 16:23:57 +01:00
parent f935b1881a
commit 8e31cc5c23

View file

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