otf: add patch api endpoint for person and thirdparty

This commit is contained in:
2021-09-29 14:56:25 +02:00
parent a8df0070e8
commit bfd95bff39
4 changed files with 56 additions and 17 deletions

View File

@@ -163,11 +163,12 @@ export default {
resolve();
}));
},
postData() {
postPerson(this.person)
patchData() {
console.log('id', this.id, 'and body', this.person);
patchPerson(this.id, this.person)
.then(person => new Promise((resolve, reject) => {
this.person = person;
console.log('post person', this.person);
console.log('patch person', this.person);
resolve();
}))
}