refactor: simplify the use of auth id (monicahq/chandler#282)

This commit is contained in:
Mazarin
2022-11-01 13:24:33 -04:00
committed by GitHub
parent b6c1f61e98
commit 4f359546b1
82 changed files with 181 additions and 181 deletions
@@ -17,7 +17,7 @@ class ContactModuleNoteController extends Controller
{
$data = [
'account_id' => Auth::user()->account_id,
'author_id' => Auth::user()->id,
'author_id' => Auth::id(),
'vault_id' => $vaultId,
'contact_id' => $contactId,
'title' => $request->input('title'),
@@ -38,7 +38,7 @@ class ContactModuleNoteController extends Controller
{
$data = [
'account_id' => Auth::user()->account_id,
'author_id' => Auth::user()->id,
'author_id' => Auth::id(),
'vault_id' => $vaultId,
'contact_id' => $contactId,
'note_id' => $noteId,
@@ -60,7 +60,7 @@ class ContactModuleNoteController extends Controller
{
$data = [
'account_id' => Auth::user()->account_id,
'author_id' => Auth::user()->id,
'author_id' => Auth::id(),
'vault_id' => $vaultId,
'contact_id' => $contactId,
'note_id' => $noteId,