diff --git a/app/Models/Transformers/GalleryTransformer.php b/app/Models/Transformers/GalleryTransformer.php index 5ccce910..efcd9860 100644 --- a/app/Models/Transformers/GalleryTransformer.php +++ b/app/Models/Transformers/GalleryTransformer.php @@ -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, ]