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(() => {