showReport fix
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Bernat Exposito Domenech 2020-03-16 12:32:26 +01:00
parent 1dd335a216
commit 285d930b8e
1 changed files with 2 additions and 4 deletions

View File

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