diff --git a/examples/online-store/plugins/entities/Product/harmonize/Harmonize Products/content/content.sjs b/examples/online-store/plugins/entities/Product/harmonize/Harmonize Products/content/content.sjs index 850dd8a40a..1b2d497113 100644 --- a/examples/online-store/plugins/entities/Product/harmonize/Harmonize Products/content/content.sjs +++ b/examples/online-store/plugins/entities/Product/harmonize/Harmonize Products/content/content.sjs @@ -8,10 +8,10 @@ * @return - your content */ function createContent(id, options) { - var doc = cts.doc(id); - var root = doc.root.toObject(); + let doc = cts.doc(id); + let root = doc.root.toObject(); - var source; + let source; // for xml we need to use xpath if (root && xdmp.nodeKind(root) === 'element') { @@ -38,11 +38,11 @@ function createContent(id, options) { */ function extractInstanceProduct(source) { // the original source documents - var attachments = source; + let attachments = source; - var sku = xs.string(source.sku || source.SKU); - var title = xs.string(source.title); - var price = xs.decimal(source.price); + let sku = xs.string(source.sku || source.SKU); + let title = xs.string(source.title); + let price = xs.decimal(source.price); // return the instance object return {