feat(scanner): return scan attempt result context

This commit is contained in:
2026-09-08 08:51:10 -03:00
parent 34058e6a81
commit 67bcb420e4
5 changed files with 55 additions and 11 deletions

View File

@@ -16,8 +16,10 @@ class ScanAttemptResource extends JsonResource
return [
'id' => $this->id,
'data' => $this->data,
'ticket_id' => $this->ticket_id,
'ticket' => $this->ticket?->ticket,
'attempted_at' => $this->created_at,
'resolved_at' => $this->resolved_at,
'result' => $this->result->value,
'can_view_ticket' => $this->ticket !== null
&& $this->result !== ScanAttemptResult::CategoryForbidden,