alter N+1 detection process

This commit is contained in:
Mark Gregory
2026-06-26 11:13:23 +01:00
parent 4ae70ba737
commit 788bb87b01
10 changed files with 117 additions and 10 deletions
+1 -1
View File
@@ -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();