mirror of
https://github.com/nextcloud/server.git
synced 2026-02-09 22:05:33 -05:00
dont delegate Mount\Manager::getByNumericId to getByStorageId
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
87b53dfed3
commit
43589312cc
1 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue