diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/AccountsController.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Controller/AccountsController.php b/lib/Controller/AccountsController.php index 70332c758..cc20d454d 100644 --- a/lib/Controller/AccountsController.php +++ b/lib/Controller/AccountsController.php @@ -287,18 +287,18 @@ class AccountsController extends Controller { * @param int $uid * @return JSONResponse */ - public function draft(int $accountId, string $subject = null, string $body, string $to, string $cc, string $bcc, int $uid = null): JSONResponse { - if (is_null($uid)) { + public function draft(int $accountId, string $subject = null, string $body, string $to, string $cc, string $bcc, int $draftUID = null): JSONResponse { + if (is_null($draftUID)) { $this->logger->info("Saving a new draft in account <$accountId>"); } else { - $this->logger->info("Updating draft <$uid> in account <$accountId>"); + $this->logger->info("Updating draft <$draftUID> in account <$accountId>"); } $account = $this->accountService->find($this->currentUserId, $accountId); $messageData = NewMessageData::fromRequest($account, $to, $cc, $bcc, $subject, $body, []); try { - $newUID = $this->mailTransmission->saveDraft($messageData, $uid); + $newUID = $this->mailTransmission->saveDraft($messageData, $draftUID); return new JSONResponse([ 'uid' => $newUID, ]); |