ソースを参照

支持progress

visuddhinanda 11 ヶ月 前
コミット
36cb0e2cf9
1 ファイル変更4 行追加1 行削除
  1. 4 1
      api-v8/app/Http/Resources/ChannelResource.php

+ 4 - 1
api-v8/app/Http/Resources/ChannelResource.php

@@ -27,7 +27,10 @@ class ChannelResource extends JsonResource
             "created_at" => $this->created_at,
             "updated_at" => $this->updated_at,
         ];
-        if(isset($this->role)){
+        if (isset($this->progress)) {
+            $data["progress"] = $this->progress;
+        }
+        if (isset($this->role)) {
             $data["role"] = $this->role;
         }
         return $data;