back-end test fix
This commit is contained in:
parent
08ef7dee96
commit
3594d5df4c
|
@ -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!'))
|
||||
);
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue