Skip to content

Commit

Permalink
Merge pull request #23 from art-institute-of-chicago/drift/fix-output…
Browse files Browse the repository at this point in the history
…-images

Fix API image URL
  • Loading branch information
driftingly authored May 2, 2024
2 parents 84291ca + d2a8c03 commit 66a444e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Resources/ThemePromptArtworkResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private function getApiImages(Artwork $artwork): array
'img_medium' => static::IMAGE_SIZES['medium'],
'img_large' => static::IMAGE_SIZES['large'],
])->map(fn ($size) => [
'url' => $this->getApiImageUrl($artwork->id, $size),
'url' => $this->getApiImageUrl($artwork->image_id, $size),
...$this->getDimensions(
$artwork->thumbnail->width,
$artwork->thumbnail->height,
Expand Down

0 comments on commit 66a444e

Please sign in to comment.