Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/514-bug-retrieving-thumbnail-url…
Browse files Browse the repository at this point in the history
…s-via-graphql-api-triggers-thumbnail-generation' into 514-bug-retrieving-thumbnail-urls-via-graphql-api-triggers-thumbnail-generation

# Conflicts:
#	src/GraphQL/FieldHelper/AssetFieldHelper.php
  • Loading branch information
mcop1 committed Oct 24, 2024
2 parents b11d3d0 + 7db855d commit 89f5b11
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/GraphQL/FieldHelper/AssetFieldHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ public function getImageDocumentThumbnail(
string | Image\Thumbnail\Config $thumbNailConfig,
string $thumbNailFormat = null,
bool $deferred = false
): mixed
{
): mixed {
match(true) {
$asset instanceof Asset\Document => $thumb = $asset->getImageThumbnail(
$thumbNailConfig,
Expand All @@ -74,8 +73,7 @@ public function getAssetThumbnail(
string | Image\Thumbnail\Config | Video\Thumbnail\Config $thumbNailConfig,
string $thumbNailFormat = null,
bool $deferred = false
): mixed
{
): mixed {
if (($asset instanceof Asset\Video) && (is_string($thumbNailConfig) || $thumbNailConfig instanceof Video\Thumbnail\Config)) {
return $this->getVideoThumbnail($asset, $thumbNailConfig, $thumbNailFormat);
} else {
Expand Down

0 comments on commit 89f5b11

Please sign in to comment.