]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Repos/ChapterRepo.php
ZIP Imports: Added API examples, finished testing
[bookstack] / app / Entities / Repos / ChapterRepo.php
index 2ab6e671f6d5679b3d293dbc72804c113d2b5c38..6503e63cfafc5912a886131ab089b169358ecbeb 100644 (file)
@@ -37,6 +37,8 @@ class ChapterRepo
             Activity::add(ActivityType::CHAPTER_CREATE, $chapter);
 
             $this->baseRepo->sortParent($chapter);
+
+            return $chapter;
         }))->run();
     }