Skip to content

Commit

Permalink
Get gallery lat-long info from API model [MA-156]
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiltri committed Mar 5, 2024
1 parent 6c8831b commit 0c98875
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/Models/Transformers/GalleryTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public function transform(TwillModelContract $gallery)
$gallery->id => [
'title' => $gallery->title,
'nid' => (string) $gallery->id, // Legacy from Drupal
'location' => $gallery->latlon,
'latitude' => $gallery->latitude,
'longitude' => $gallery->longitude,
'location' => $gallery->getApiModel()->latlon,
'latitude' => $gallery->getApiModel()->latitude,
'longitude' => $gallery->getApiModel()->longitude,
'gallery_id' => (string) $gallery->id,
'tgn_id' => null,// Legacy from Drupal
'closed' => $gallery->is_closed,
'number' => $gallery->number,
'floor' => $gallery->floor,
'closed' => $gallery->getApiModel()->is_closed,
'number' => $gallery->getApiModel()->number,
'floor' => $gallery->getApiModel()->floor,
'source_updated_at' => $gallery->source_updated_at,
'updated_at' => $gallery->updated_at,
]
Expand Down

0 comments on commit 0c98875

Please sign in to comment.