1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Added deletion of favourites on entity/user delete

This commit is contained in:
Dan Brown
2021-05-23 13:41:56 +01:00
parent 1e0aa7ee2c
commit c2069f37cc
3 changed files with 11 additions and 0 deletions

View File

@@ -317,6 +317,7 @@ class TrashCan
$entity->jointPermissions()->delete();
$entity->searchTerms()->delete();
$entity->deletions()->delete();
$entity->favourites()->delete();
if ($entity instanceof HasCoverImage && $entity->cover) {
$imageService = app()->make(ImageService::class);