Skip to content

Commit

Permalink
Merge pull request #20 from flownative/bugfix/is-imported-check
Browse files Browse the repository at this point in the history
Make isImported actually check the imported state
  • Loading branch information
kdambekalns authored Jan 19, 2022
2 parents 3d99776 + 11c97bb commit 74e11d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/AssetSource/CantoAssetProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ public function getTags(): array
*/
public function isImported(): bool
{
return true;
$importedAsset = $this->importedAssetRepository->findOneByAssetSourceIdentifierAndRemoteAssetIdentifier($this->assetSource->getIdentifier(), $this->identifier);
return ($importedAsset instanceof ImportedAsset);
}
}

0 comments on commit 74e11d0

Please sign in to comment.