Skip to content
Snippets Groups Projects
Commit 0b2bfe61 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #3371 from owncloud/fix-3353

Fix finding mount in background watcher, fixes #3353
parents dfddaf8f 5dcec346
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ class BackgroundWatcher {
return;
}
list($storageId, $internalPath) = $cacheItem;
$mounts = Mount::findByStorageId($storageId);
$mounts = Filesystem::getMountByStorageId($storageId);
if (count($mounts) === 0) {
//if the storage we need isn't mounted on default, try to find a user that has access to the storage
......@@ -40,7 +40,7 @@ class BackgroundWatcher {
return;
}
Filesystem::initMountPoints($users[0]);
$mounts = Mount::findByStorageId($storageId);
$mounts = Filesystem::getMountByStorageId($storageId);
if (count($mounts) === 0) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment