Skip to content

Commit

Permalink
chore: Deprecate Handlers methods
Browse files Browse the repository at this point in the history
  • Loading branch information
roadiz-ci committed Mar 14, 2024
1 parent a8a37cf commit 8720861
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Controllers/Nodes/NodesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,8 @@ public function emptyTrashAction(Request $request): Response
/** @var Node|null $chroot */
$chroot = $this->nodeChrootResolver->getChroot($this->getUser());
if ($chroot !== null) {
/** @var NodeHandler $nodeHandler */
$nodeHandler = $this->handlerFactory->getHandler($chroot);
$ids = $nodeHandler->getAllOffspringId();
$criteria["parent"] = $ids;
$nodeRepository = $this->em()->getRepository(Node::class);
$criteria["parent"] = $nodeRepository->findAllOffspringIdByNode($chroot);
}

$nodes = $this->em()
Expand Down

0 comments on commit 8720861

Please sign in to comment.