Explorar o código

:bug: 没有$mode

visuddhinanda %!s(int64=3) %!d(string=hai) anos
pai
achega
2b03b1011d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/Http/Resources/SentPrResource.php

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

@@ -25,6 +25,7 @@ class SentPrResource extends JsonResource
             $role = 'owner';
         }
         $channel = ChannelApi::getById($this->channel_uid);
+        $mode = $request->get("mode",'read');
         return [
             "id"=>$this->id,
             "book"=> $this->book_id,