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
@@ -67,7 +67,7 @@ class ApiReminderController extends ApiController
$request->except(['account_id'])
+
[
'account_id' => auth()->user()->account->id,
'account_id' => auth()->user()->account_id,
]
);
} catch (ModelNotFoundException $e) {
@@ -96,7 +96,7 @@ class ApiReminderController extends ApiController
$request->except(['account_id', 'reminder_id'])
+
[
'account_id' => auth()->user()->account->id,
'account_id' => auth()->user()->account_id,
'reminder_id' => $reminderId,
]
);
@@ -122,7 +122,7 @@ class ApiReminderController extends ApiController
{
try {
app(DestroyReminder::class)->execute([
'account_id' => auth()->user()->account->id,
'account_id' => auth()->user()->account_id,
'reminder_id' => $reminderId,
]);
} catch (ModelNotFoundException $e) {