diff --git a/app/controllers/shift_commerce/bundles_controller.rb b/app/controllers/shift_commerce/bundles_controller.rb index e9afb04..d1a0a8c 100644 --- a/app/controllers/shift_commerce/bundles_controller.rb +++ b/app/controllers/shift_commerce/bundles_controller.rb @@ -26,7 +26,7 @@ class BundlesController < ::ApplicationController 'meta_attributes', 'updated_at' ].join(',').freeze, - asset_files: 's3_url'.freeze, + asset_files: 'public_url'.freeze, products: [ 'reference', 'title', diff --git a/spec/mocks/bundle_mocks.rb b/spec/mocks/bundle_mocks.rb index f748a14..b4fc4e4 100644 --- a/spec/mocks/bundle_mocks.rb +++ b/spec/mocks/bundle_mocks.rb @@ -75,7 +75,7 @@ class Bundles "file_content_size": 11920802, "image_height": 5418, "image_width": 3612, - "s3_url": "https://production-matalanb-files.s3-eu-west-1.amazonaws.com/uploads/asset_file/asset_file/153570/1510654205.45299-MATALAN-EP24-Alesha_014_1_.jpg", + "public_url": "https://production-matalanb-files.s3-eu-west-1.amazonaws.com/uploads/asset_file/asset_file/153570/1510654205.45299-MATALAN-EP24-Alesha_014_1_.jpg", "canonical_path": "https://production-matalanb-files.s3-eu-west-1.amazonaws.com/uploads/asset_file/asset_file/153570/1510654205.45299-MATALAN-EP24-Alesha_014_1_.jpg" }, "relationships": {