dont delegate Mount\Manager::getByNumericId to getByStorageId

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/36566/head
Robin Appelman 3 years ago
parent 87b53dfed3
commit 43589312cc
  1. 9
      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;
}
/**

Loading…
Cancel
Save