quiet-air-95012
08/01/2025, 3:35 PMwooden-beard-40210
08/01/2025, 7:39 PMquiet-air-95012
08/01/2025, 10:58 PMwooden-beard-40210
08/02/2025, 8:43 AMquiet-air-95012
08/04/2025, 3:56 PMconst fieldsToInclude = ['id', 'title', 'handle', 'body_html', 'product_type']
// Helper to add full product URL
const formatProduct = (product) => {
const picked = _.pick(product, fieldsToInclude)
picked.url = `https://ncoliveoil.com/products/${product.handle}`
return picked
}
// Map and format for each product category
workflow.oils = workflow.oils.productsList.map(formatProduct)
workflow.vinegars = workflow.vinegars.productsList.map(formatProduct)
workflow.seasoning = workflow.seasoning.productsList.map(formatProduct)