Skip to content

Commit

Permalink
Map Tour tour_audio to selection from CMS [MA-165]
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiltri committed Feb 28, 2024
1 parent 4fdddd7 commit 97df80d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Transformers/TourTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function transform(TwillModelContract $tour): array
'description' => $tour->description,
'intro' => $tour->intro,
'tour_duration' => $tour->duration_in_minutes,
'tour_audio' => $tour->selector?->locales,
'tour_audio' => $tour->selector?->apiAudios->first()->datahub_id,
'category' => null, // Legacy from Drupal
'weight' => $tour->position,
];
Expand Down

0 comments on commit 97df80d

Please sign in to comment.