refactor: update normalize line items (image)

This commit is contained in:
Bolaji Ayodeji 2022-01-28 16:26:30 +01:00
parent 553fbc8ec5
commit 8cac636022

View File

@ -19,7 +19,7 @@ export default function normalizeLineItems(lineItems: any[]) {
sku: attributes.sku_code, sku: attributes.sku_code,
price: attributes.unit_amount_float, price: attributes.unit_amount_float,
image: { image: {
url: `/commercelayer_assets/${attributes.reference}_FLAT.png`, url: `https://data.commercelayer.app/vercel-provider/${attributes.reference}_FLAT.png`,
altText: 'Black Women Long Sleeve Shirt', altText: 'Black Women Long Sleeve Shirt',
width: 1000, width: 1000,
height: 1000, height: 1000,