back-end test fix

This commit is contained in:
Joan Sanchez 2018-08-30 07:09:06 +02:00
parent 08ef7dee96
commit 3594d5df4c
2 changed files with 2 additions and 8 deletions

View File

@ -33,7 +33,7 @@ export default class Controller {
for (let tax of this.taxes)
data.push({id: tax.id, taxClassFk: tax.taxClassFk});
let url = `/item/api/Items/${this.$stateParams.id}/updateTaxes`;
let url = `/item/api/Items/updateTaxes`;
this.$http.post(url, data).then(
() => this.vnApp.showSuccess(this._.instant('Data saved!'))
);

View File

@ -5,12 +5,6 @@ module.exports = Self => {
description: 'Updates the item taxes',
accessType: 'WRITE',
accepts: [{
arg: 'id',
type: 'number',
required: true,
description: 'The item id',
http: {source: 'path'}
}, {
arg: 'taxes',
type: ['object'],
required: true,
@ -22,7 +16,7 @@ module.exports = Self => {
root: true
},
http: {
path: `/:id/updateTaxes`,
path: `/updateTaxes`,
verb: 'post'
}
});