Skip to content

Commit 35a5119

Browse files
committed
Perms: Fixed some issues made when adding transactions
1 parent 47fd578 commit 35a5119

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/Entities/Repos/BookshelfRepo.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public function create(array $input, array $bookIds): Bookshelf
3030
$this->baseRepo->updateCoverImage($shelf, $input['image'] ?? null);
3131
$this->updateBooks($shelf, $bookIds);
3232
Activity::add(ActivityType::BOOKSHELF_CREATE, $shelf);
33+
return $shelf;
3334
}))->run();
3435
}
3536

app/Entities/Repos/ChapterRepo.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public function create(array $input, Book $parentBook): Chapter
3737
Activity::add(ActivityType::CHAPTER_CREATE, $chapter);
3838

3939
$this->baseRepo->sortParent($chapter);
40+
41+
return $chapter;
4042
}))->run();
4143
}
4244

0 commit comments

Comments
 (0)