diff options
author | Anna Larch <anna@nextcloud.com> | 2022-08-25 12:28:27 +0300 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2022-08-25 12:28:27 +0300 |
commit | 81c7e771f739ccac351e06fa19d5f4aee7b1afbe (patch) | |
tree | 5c678cea454c808ba7c970cbcb8ec283edf00424 /lib | |
parent | ca3f9296ba110725863f4a83e984a9bd77ac1776 (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.php | 1 |
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); } |