mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Merge pull request #46017 from nextcloud/get-first-node-by-id-folder
fix: also use optimized getFirstNodeyIdInPath for Folder::getFirstNodeById
This commit is contained in:
commit
da8e1c192d
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ class Folder extends Node implements \OCP\Files\Folder {
|
|||
}
|
||||
|
||||
public function getFirstNodeById(int $id): ?\OCP\Files\Node {
|
||||
return current($this->getById($id)) ?: null;
|
||||
return $this->root->getFirstNodeByIdInPath($id, $this->getPath());
|
||||
}
|
||||
|
||||
public function getAppDataDirectoryName(): string {
|
||||
|
|
|
|||
Loading…
Reference in a new issue