]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Repos/BookRepo.php
LDAP: Added TLS support
[bookstack] / app / Entities / Repos / BookRepo.php
index 70db0fa65750bde4266c97040939d7a0b55c098a..b0ea7cb87f1bd612c068f591af23ccef8906c793 100644 (file)
@@ -123,12 +123,12 @@ class BookRepo
 
     /**
      * Remove a book from the system.
-     * @throws NotifyException
-     * @throws BindingResolutionException
+     * @throws Exception
      */
     public function destroy(Book $book)
     {
         $trashCan = new TrashCan();
-        $trashCan->destroyBook($book);
+        $trashCan->softDestroyBook($book);
+        $trashCan->autoClearOld();
     }
 }