From 285d930b8e6586d5656c41d8411521e5e218da49 Mon Sep 17 00:00:00 2001 From: Bernat Exposito Domenech Date: Mon, 16 Mar 2020 12:32:26 +0100 Subject: [PATCH] showReport fix --- modules/route/front/descriptor/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/route/front/descriptor/index.js b/modules/route/front/descriptor/index.js index e28654b99a..51ca23a92c 100644 --- a/modules/route/front/descriptor/index.js +++ b/modules/route/front/descriptor/index.js @@ -35,10 +35,9 @@ class Controller extends Component { } showRouteReport() { - const user = this.route.worker.user; const params = { authorization: this.vnToken.token, - clientId: user.id, + clientId: this.vnConfig.storage.currentUserWorkerId, routeId: this.route.id }; const serializedParams = this.$httpParamSerializer(params); @@ -47,10 +46,9 @@ class Controller extends Component { } sendRouteReport() { - const user = this.route.worker.user; const params = { recipient: user.emailUser.email, - clientId: user.id, + clientId: this.vnConfig.storage.currentUserWorkerId, routeId: this.route.id }; this.$http.get(`email/driver-route`, {params}).then(() => {