front toDos almost position, checked, delete
This commit is contained in:
@@ -22,7 +22,7 @@ class ToDo extends JsonResource
|
||||
'data' => [
|
||||
'name' => $this->name,
|
||||
'order' => (int) $this->order,
|
||||
'checked_at' => optional($this->checked_at)->diffForHumans(),
|
||||
'checked_at' => ($this->checked_at) ? 1 : null,
|
||||
'last_updated' => $this->updated_at->diffForHumans(),
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user