Browse Source

"publisher" = $book->channel->owner

visuddhinanda 10 months ago
parent
commit
de2ad8b5d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api-v8/app/Http/Controllers/BookController.php

+ 1 - 1
api-v8/app/Http/Controllers/BookController.php

@@ -87,7 +87,7 @@ class BookController extends Controller
             "id" => $book->uid,
             "id" => $book->uid,
             "title" => $title,
             "title" => $title,
             "author" => $book->channel->name,
             "author" => $book->channel->name,
-            "publisher" => $book->channel->owner->nickname,
+            "publisher" => $book->channel->owner,
             "type" => __('label.' . $book->channel->type),
             "type" => __('label.' . $book->channel->type),
             "category_id" => 11,
             "category_id" => 11,
             "cover" => "/assets/images/cover/1/214.jpg",
             "cover" => "/assets/images/cover/1/214.jpg",