From 706985fd7780b4564c7608d5b3624132b578a31c Mon Sep 17 00:00:00 2001 From: Jing Li Date: Thu, 2 May 2024 12:09:02 +0800 Subject: [PATCH] Update --- app/Http/Resources/WorkflowCheckResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Resources/WorkflowCheckResource.php b/app/Http/Resources/WorkflowCheckResource.php index 5af44c8..47a0721 100644 --- a/app/Http/Resources/WorkflowCheckResource.php +++ b/app/Http/Resources/WorkflowCheckResource.php @@ -23,7 +23,7 @@ class WorkflowCheckResource extends JsonResource 'check_status_text' => $this->check_status?->text(), 'checked_at' => $this->checked_at?->getTimestamp(), 'check_remarks' => (string) $this->check_remarks, - 'employee' => EmployeeResource::collection($this->whenLoaded('employee')), + 'employee' => EmployeeResource::make($this->whenLoaded('employee')), 'logs' => WorkflowLogResource::collection($this->whenLoaded('logs')), 'subject_id' => $this->subject_id, 'subject_type' => $this->subject_type,