chore: remove access of eager load object if not needed (#3639)

This commit is contained in:
Alexis Saettler
2020-03-04 22:25:24 +01:00
committed by GitHub
parent 7974b334d9
commit 87bb435ab0
155 changed files with 794 additions and 787 deletions
@@ -71,7 +71,7 @@ class ApiCallController extends ApiController
$request->except(['account_id'])
+
[
'account_id' => auth()->user()->account->id,
'account_id' => auth()->user()->account_id,
]
);
} catch (ModelNotFoundException $e) {
@@ -100,7 +100,7 @@ class ApiCallController extends ApiController
$request->except(['account_id', 'call_id'])
+
[
'account_id' => auth()->user()->account->id,
'account_id' => auth()->user()->account_id,
'call_id' => $callId,
]
);
@@ -126,7 +126,7 @@ class ApiCallController extends ApiController
{
try {
app(DestroyCall::class)->execute([
'account_id' => auth()->user()->account->id,
'account_id' => auth()->user()->account_id,
'call_id' => $callId,
]);
} catch (ModelNotFoundException $e) {