visuddhinanda 3 лет назад
Родитель
Сommit
5eb8994a1b
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app/Http/Resources/DiscussionResource.php

+ 1 - 0
app/Http/Resources/DiscussionResource.php

@@ -24,6 +24,7 @@ class DiscussionResource extends JsonResource
             "title"=> $this->title,
             "content"=> $this->content,
             "parent"=> $this->parent,
+            "children_count"=> $this->children_count,
             "editor"=> StudioApi::getById($this->editor_uid),
             "res_id"=>$this->res_id,
             "res_type"=> $this->res_type,