]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Repos/BookshelfRepo.php
ZIP Imports: Added API examples, finished testing
[bookstack] / app / Entities / Repos / BookshelfRepo.php
index 5d4d604bc309afdbc08c3a04864f1158fb14f87a..8e60f58c42f0c4d1c735b90fe41b962e32347765 100644 (file)
@@ -30,6 +30,7 @@ class BookshelfRepo
             $this->baseRepo->updateCoverImage($shelf, $input['image'] ?? null);
             $this->updateBooks($shelf, $bookIds);
             Activity::add(ActivityType::BOOKSHELF_CREATE, $shelf);
+            return $shelf;
         }))->run();
     }