no message

This commit is contained in:
StudioTem committed 2024-01-25 18:01:11 +01:00
1 parent 2e500237f1
commit 2fb4d605be
1 file changed
+3 -3
+3 -3
View File
@@ -17,11 +17,12 @@ class SubTaskResource extends JsonResource
return [ return [
'id' => $this->id, 'id' => $this->id,
'created_by' => $this->created_by, 'created_by' => $this->created_by,
'master_task' => $this->mastertask->title,
'master_task_description' => $this->mastertask->description, 'master_task_description' => $this->mastertask->description,
'master_task_deadline' => $this->mastertask->deadline,
'master_task_id' => $this->mastertask->id,
'description' => $this->description, 'description' => $this->description,
'project_code' => ($this->mastertask->project) ? $this->mastertask->project->code . ' ' . $this->mastertask->project->name : null, 'project_code' => ($this->mastertask->project) ? $this->mastertask->project->code . ' ' . $this->mastertask->project->name : null,
'master_task_id' => $this->mastertask->id,
'master_task' => $this->mastertask->title,
'title' => $this->title, 'title' => $this->title,
'team_id' => ($this->mastertask->team) ? $this->mastertask->team->id : null, 'team_id' => ($this->mastertask->team) ? $this->mastertask->team->id : null,
'team' => $this->mastertask->team, 'team' => $this->mastertask->team,
@@ -29,7 +30,6 @@ class SubTaskResource extends JsonResource
'duration' => $this->estimated_time, 'duration' => $this->estimated_time,
'spent_time' => $this->tracked_time, 'spent_time' => $this->tracked_time,
'deadline' => $this->deadline, 'deadline' => $this->deadline,
'master_task_deadline' => $this->mastertask->deadline,
'is_finished' => $this->is_finished, 'is_finished' => $this->is_finished,
'timeblocks' => TimeblockResource::collection($this->timeblocks), 'timeblocks' => TimeblockResource::collection($this->timeblocks),
'timesheets' => TimesheetResource::collection($this->timesheets), 'timesheets' => TimesheetResource::collection($this->timesheets),