visuddhinanda 2 роки тому
батько
коміт
b66f594f47
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      app/Http/Resources/SentPrResource.php

+ 2 - 2
app/Http/Resources/SentPrResource.php

@@ -4,7 +4,7 @@ namespace App\Http\Resources;
 
 use Illuminate\Http\Resources\Json\JsonResource;
 use App\Http\Api\MdRender;
-use App\Http\Api\StudioApi;
+use App\Http\Api\UserApi;
 use App\Http\Api\AuthApi;
 use App\Http\Api\ChannelApi;
 
@@ -32,7 +32,7 @@ class SentPrResource extends JsonResource
             "paragraph"=> $this->paragraph,
             "word_start"=> $this->word_start,
             "word_end"=> $this->word_end,
-            "editor"=> StudioApi::getById($this->editor_uid),
+            "editor"=> UserApi::getByUuid($this->editor_uid),
             "channel"=> $channel,
             "content"=>$this->content,
             "html"=> MdRender::render($this->content,[$this->channel_uid],null,$mode,$channel['type']),