alter N+1 detection process
This commit is contained in:
@@ -365,7 +365,7 @@ final class TicketShow extends Component
|
||||
->when(! $this->canSeeInternalNotes(), static function ($query): void {
|
||||
$query->where('is_internal', false);
|
||||
})
|
||||
->with(['user.company', 'attachments'])
|
||||
->with(['user.company', 'owner:id,name,email,company_id', 'agent:id,name,email', 'attachments'])
|
||||
->oldest()
|
||||
->get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user