Skip to content

Commit

Permalink
[FIX] TradeTracker feed image src format
Browse files Browse the repository at this point in the history
Co-Authored-By: Vincent van Hoven <11269255+vincentvanhoven@users.noreply.github.com>
  • Loading branch information
Vincent van Hoven and vincentvanhoven committed Jul 24, 2024
1 parent 65b323a commit 61d792a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jobs/Feeds/TradeTrackerFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected function productToFeedRow(Product $product)
$fields['brand'] = $product->brand->name;
}

$images = $product->images()->limit(5)->map->getPublicUrl()->all();
$images = $product->images->take(5)->map->getPublicUrl()->all();

foreach ($images as $key => $image) {
$fields['imageURL-'.($key + 1)] = $image;
Expand Down

0 comments on commit 61d792a

Please sign in to comment.