Fix issues proposed by sonar (#986)
This commit is contained in:
@@ -63,7 +63,7 @@ class ApiNoteController extends ApiController
|
||||
}
|
||||
|
||||
try {
|
||||
$contact = Contact::where('account_id', auth()->user()->account_id)
|
||||
Contact::where('account_id', auth()->user()->account_id)
|
||||
->where('id', $request->input('contact_id'))
|
||||
->firstOrFail();
|
||||
} catch (ModelNotFoundException $e) {
|
||||
@@ -115,7 +115,7 @@ class ApiNoteController extends ApiController
|
||||
}
|
||||
|
||||
try {
|
||||
$contact = Contact::where('account_id', auth()->user()->account_id)
|
||||
Contact::where('account_id', auth()->user()->account_id)
|
||||
->where('id', $request->input('contact_id'))
|
||||
->firstOrFail();
|
||||
} catch (ModelNotFoundException $e) {
|
||||
|
||||
Reference in New Issue
Block a user