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;