Skip to content

Commit

Permalink
chore: accounts controller patch response
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny authored and kesselb committed Oct 9, 2024
1 parent 2c448f6 commit 7675a9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Controller/AccountsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace OCA\Mail\Controller;

use Horde_Imap_Client;
use OCA\Mail\Account;
use OCA\Mail\AppInfo\Application;
use OCA\Mail\Contracts\IMailManager;
use OCA\Mail\Contracts\IMailTransmission;
Expand Down Expand Up @@ -277,7 +278,7 @@ public function patchAccount(int $id,
$dbAccount->setSearchBody($searchBody);
}
return new JSONResponse(
$this->accountService->save($dbAccount)
new Account($this->accountService->save($dbAccount))
);
}

Expand Down

0 comments on commit 7675a9a

Please sign in to comment.