Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2022-08-25 12:28:27 +0300
committerAnna Larch <anna@nextcloud.com>2022-08-25 12:28:27 +0300
commit81c7e771f739ccac351e06fa19d5f4aee7b1afbe (patch)
tree5c678cea454c808ba7c970cbcb8ec283edf00424 /lib
parentca3f9296ba110725863f4a83e984a9bd77ac1776 (diff)
Remove unneccessary account checkperf/remove-account-check
As we're already joining on the user accounts table, the account doesn't need to be queried again for a single show. This is a mini performance optimistation. THe complete account data could also be returned with the JOIN queries as a second performance improvement, instead of querying the entity fromt he DB again The update method does just that at the moment. Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/OutboxController.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Controller/OutboxController.php b/lib/Controller/OutboxController.php
index e8716ad28..d4e868455 100644
--- a/lib/Controller/OutboxController.php
+++ b/lib/Controller/OutboxController.php
@@ -75,7 +75,6 @@ class OutboxController extends Controller {
*/
public function show(int $id): JsonResponse {
$message = $this->service->getMessage($id, $this->userId);
- $this->accountService->find($this->userId, $message->getAccountId());
return JsonResponse::success($message);
}