NOW MANAGED ON CODEBERG
Perms: Fixed some issues made when adding transactions
Dan Brown35a51197cee6
diff --git a/app/Entities/Repos/BookshelfRepo.php b/app/Entities/Repos/BookshelfRepo.phpindex 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.phpindex 2ab6e671f..6503e63cf 100644--- a/app/Entities/Repos/ChapterRepo.php+++ b/app/Entities/Repos/ChapterRepo.php@@ -37,6 +37,8 @@ class ChapterRepoActivity::add(ActivityType::CHAPTER_CREATE, $chapter);$this->baseRepo->sortParent($chapter);++ return $chapter;}))->run();}