diff options
author | Robin Appelman <robin@icewind.nl> | 2023-02-06 18:16:23 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2023-02-06 18:16:23 +0100 |
commit | 43589312ccbdf977bb6d89eae3bec28bde2dceff (patch) | |
tree | cf03a582a1695347bb55bceca7d41484cd133a96 /lib | |
parent | 87b53dfed3f68a5ddbc13e445c0c53d299374c5e (diff) | |
download | nextcloud-server-43589312ccbdf977bb6d89eae3bec28bde2dceff.tar.gz nextcloud-server-43589312ccbdf977bb6d89eae3bec28bde2dceff.zip |
dont delegate Mount\Manager::getByNumericId to getByStorageId
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Mount/Manager.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/private/Files/Mount/Manager.php b/lib/private/Files/Mount/Manager.php index 9ba0e504058..805cce658a6 100644 --- a/lib/private/Files/Mount/Manager.php +++ b/lib/private/Files/Mount/Manager.php @@ -184,8 +184,13 @@ class Manager implements IMountManager { * @return IMountPoint[] */ public function findByNumericId(int $id): array { - $storageId = \OC\Files\Cache\Storage::getStorageId($id); - return $this->findByStorageId($storageId); + $result = []; + foreach ($this->mounts as $mount) { + if ($mount->getNumericStorageId() === $id) { + $result[] = $mount; + } + } + return $result; } /** |