mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Merge pull request #45140 from nextcloud/fix-fileaccess-single
fix: fix FileAccess::getByFileId(InStorage)
This commit is contained in:
commit
dbd2bc7a66
1 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ class FileAccess implements IFileAccess {
|
|||
}
|
||||
|
||||
public function getByFileIdInStorage(int $fileId, int $storageId): ?CacheEntry {
|
||||
$items = $this->getByFileIdsInStorage([$fileId], $storageId);
|
||||
$items = array_values($this->getByFileIdsInStorage([$fileId], $storageId));
|
||||
return $items[0] ?? null;
|
||||
}
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ class FileAccess implements IFileAccess {
|
|||
}
|
||||
|
||||
public function getByFileId(int $fileId): ?CacheEntry {
|
||||
$items = $this->getByFileIds([$fileId]);
|
||||
$items = array_values($this->getByFileIds([$fileId]));
|
||||
return $items[0] ?? null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue