mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-05 00:42:14 +03:00
Perms: Fixed some issues made when adding transactions
This commit is contained in:
@@ -30,6 +30,7 @@ class BookshelfRepo
|
|||||||
$this->baseRepo->updateCoverImage($shelf, $input['image'] ?? null);
|
$this->baseRepo->updateCoverImage($shelf, $input['image'] ?? null);
|
||||||
$this->updateBooks($shelf, $bookIds);
|
$this->updateBooks($shelf, $bookIds);
|
||||||
Activity::add(ActivityType::BOOKSHELF_CREATE, $shelf);
|
Activity::add(ActivityType::BOOKSHELF_CREATE, $shelf);
|
||||||
|
return $shelf;
|
||||||
}))->run();
|
}))->run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -37,6 +37,8 @@ class ChapterRepo
|
|||||||
Activity::add(ActivityType::CHAPTER_CREATE, $chapter);
|
Activity::add(ActivityType::CHAPTER_CREATE, $chapter);
|
||||||
|
|
||||||
$this->baseRepo->sortParent($chapter);
|
$this->baseRepo->sortParent($chapter);
|
||||||
|
|
||||||
|
return $chapter;
|
||||||
}))->run();
|
}))->run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user