mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Refactored Social auth into service, Made entity an abstract class
This commit is contained in:
@ -54,9 +54,11 @@ class BookRepo
|
||||
{
|
||||
$book = $this->getBySlug($bookSlug);
|
||||
foreach($book->pages as $page) {
|
||||
\Activity::removeEntity($page);
|
||||
$page->delete();
|
||||
}
|
||||
foreach($book->chapters as $chapter) {
|
||||
\Activity::removeEntity($chapter);
|
||||
$chapter->delete();
|
||||
}
|
||||
$book->delete();
|
||||
|
Reference in New Issue
Block a user