diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-10-21 17:20:15 +0300 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-10-24 19:22:52 +0300 |
commit | f1220f0a613d218d777cfc6f86f7a733a2cee4d3 (patch) | |
tree | 0c696dc8466ddc0f8b227e34d34f0a65ac92cebc | |
parent | 492f28461edc68b34806f64e465680577f571b37 (diff) |
Fix handling of account update API response
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r-- | lib/Controller/AccountsController.php | 2 | ||||
-rw-r--r-- | src/service/AccountService.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/AccountsController.php b/lib/Controller/AccountsController.php index 3a96ef914..290bb704d 100644 --- a/lib/Controller/AccountsController.php +++ b/lib/Controller/AccountsController.php @@ -245,7 +245,7 @@ class AccountsController extends Controller { $dbAccount->setSignatureAboveQuote($signatureAboveQuote); } return new JSONResponse( - $this->accountService->save($dbAccount)->toJson() + $this->accountService->save($dbAccount) ); } diff --git a/src/service/AccountService.js b/src/service/AccountService.js index 947a5a729..9fb225b83 100644 --- a/src/service/AccountService.js +++ b/src/service/AccountService.js @@ -42,7 +42,7 @@ export const update = (data) => { return axios .put(url, data) - .then((resp) => resp.data) + .then((resp) => resp.data.data) .then(fixAccountId) .catch((e) => { if (e.response && e.response.status === 400) { |