mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
attachments upload
This commit is contained in:
1 parent
7cec94337b
commit
ed3300ad29
9 files changed
+689
-12
No files matched your search
@@ -18,11 +18,10 @@ class AttachmentResource extends JsonResource
|
||||
'id' => $this->id,
|
||||
'content_type' => $this->content_type,
|
||||
'disk_name' => $this->disk_name,
|
||||
'extension' => $this->estimated_time,
|
||||
'extension' => $this->extension,
|
||||
'name' => $this->original_name,
|
||||
'file_size' => $this->file_size,
|
||||
'path' => $this->path,
|
||||
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ class SubTaskResource extends JsonResource
|
||||
'project_code' => $this->mastertask->project->code,
|
||||
'master_task_id' => $this->mastertask->id,
|
||||
'master_task' => $this->mastertask->title,
|
||||
'team_id' => $this->mastertask->team->id,
|
||||
'team_id' => ($this->mastertask->team) ? $this->mastertask->team->id : null,
|
||||
'team' => $this->mastertask->team,
|
||||
'employee_id' => $this->user->id,
|
||||
'duration' => $this->estimated_time,
|
||||
@@ -28,6 +28,7 @@ class SubTaskResource extends JsonResource
|
||||
'is_finished' => $this->is_finished,
|
||||
'timeblocks' => TimeblockResource::collection($this->timeblocks),
|
||||
'timesheets' => TimesheetResource::collection($this->timesheets),
|
||||
'files' => AttachmentResource::collection($this->attachments),
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user