From: Dan Brown Date: Sun, 6 Jul 2025 21:52:06 +0000 (+0100) Subject: Perms: Fixed some issues made when adding transactions X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/35a51197cee66385f61a0f8616aac3ff232dc089?hp=-c Perms: Fixed some issues made when adding transactions --- 35a51197cee66385f61a0f8616aac3ff232dc089 diff --git a/app/Entities/Repos/BookshelfRepo.php b/app/Entities/Repos/BookshelfRepo.php index 5d4d604bc..8e60f58c4 100644 --- a/app/Entities/Repos/BookshelfRepo.php +++ b/app/Entities/Repos/BookshelfRepo.php @@ -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(); } diff --git a/app/Entities/Repos/ChapterRepo.php b/app/Entities/Repos/ChapterRepo.php index 2ab6e671f..6503e63cf 100644 --- a/app/Entities/Repos/ChapterRepo.php +++ b/app/Entities/Repos/ChapterRepo.php @@ -37,6 +37,8 @@ class ChapterRepo Activity::add(ActivityType::CHAPTER_CREATE, $chapter); $this->baseRepo->sortParent($chapter); + + return $chapter; }))->run(); }