1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Removed use of book_id in activity

This commit is contained in:
Dan Brown
2020-11-07 23:15:13 +00:00
parent c157dc3490
commit ee7e1122d3
10 changed files with 51 additions and 40 deletions

View File

@ -75,7 +75,7 @@ class BookSortController extends Controller
// Rebuild permissions and add activity for involved books.
$booksInvolved->each(function (Book $book) {
Activity::add($book, ActivityType::BOOK_SORT, $book->id);
Activity::addForEntity($book, ActivityType::BOOK_SORT);
});
return redirect($book->getUrl());