Skip to content

Commit

Permalink
Merge pull request #7476 from nextcloud/fix/account-update-response-h…
Browse files Browse the repository at this point in the history
…andling

Fix handling of account update API response
  • Loading branch information
ChristophWurst authored Oct 24, 2022
2 parents 937030e + ae2728a commit 385680d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/AccountsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function patchAccount(int $id,
$dbAccount->setSignatureAboveQuote($signatureAboveQuote);
}
return new JSONResponse(
$this->accountService->save($dbAccount)->toJson()
$this->accountService->save($dbAccount)
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/service/AccountService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 385680d

Please sign in to comment.