Skip to content

Commit 16cca0b

Browse files
zigzagdevclaude
andcommitted
feat: include main_image_url field in AlgoliaImportWorldHeritages objects
Each Algolia object now carries the raw main_image_url alongside the existing thumbnail_url so search consumers can render via the new field directly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8607c12 commit 16cca0b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/app/Console/Commands/AlgoliaImportWorldHeritages.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public function handle(): int
137137
'criteria' => $row->criteria,
138138
'year_inscribed' => $row->year_inscribed !== null ? (int) $row->year_inscribed : null,
139139
'is_endangered' => (bool) $row->is_endangered,
140+
'main_image_url' => $row->main_image_url,
140141
'thumbnail_url' => $row->images->first()?->url,
141142
'state_party_codes' => $statePartyCodes,
142143
'country_names_jp' => $countryCount > 1 ? $countryNamesJp : [],

0 commit comments

Comments
 (0)