Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Fix fileExists
Browse files Browse the repository at this point in the history
  • Loading branch information
roelvanhintum committed Apr 28, 2022
1 parent 838c95d commit 55b2766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function extractColor(AssetElement $asset)
return null;
}

if (!$asset->getFs()->fileExists($asset->getPath())) {
if (!$asset->getVolume()->fileExists($asset->getPath())) {
throw new Exception('File "' . $asset->getPath() . '" does no exist on volume.');
}

Expand Down

0 comments on commit 55b2766

Please sign in to comment.