]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Repos/DeletionRepo.php
added routes for zip export
[bookstack] / app / Entities / Repos / DeletionRepo.php
index 8fad4e6b0468740d354039e45e7e0abbba7dc835..e47192cc2f12266bed38a3f62107ef00a1b7f86a 100644 (file)
@@ -2,7 +2,7 @@
 
 namespace BookStack\Entities\Repos;
 
-use BookStack\Actions\ActivityType;
+use BookStack\Activity\ActivityType;
 use BookStack\Entities\Models\Deletion;
 use BookStack\Entities\Tools\TrashCan;
 use BookStack\Facades\Activity;
@@ -21,6 +21,7 @@ class DeletionRepo
         /** @var Deletion $deletion */
         $deletion = Deletion::query()->findOrFail($id);
         Activity::add(ActivityType::RECYCLE_BIN_RESTORE, $deletion);
+
         return $this->trashCan->restoreFromDeletion($deletion);
     }
 
@@ -29,6 +30,7 @@ class DeletionRepo
         /** @var Deletion $deletion */
         $deletion = Deletion::query()->findOrFail($id);
         Activity::add(ActivityType::RECYCLE_BIN_DESTROY, $deletion);
+
         return $this->trashCan->destroyFromDeletion($deletion);
     }
 }