lib/common.js
function fixProductDates(products){
    let index = 0;
    products.forEach((product) => {
        products[index].productAddedDate = new Date();
        index++;
    });
    return products;
}
function fixProductDates(products){
    let index = 0;
    products.forEach((product) => {
        products[index].productAddedDate = new Date();
        index++;
    });
    return products;
}
function fixProductDates ( products ) { let index = 0 ; products . forEach ( ( product ) => { products [ index ] . productAddedDate = new Date ( ) ; index ++ ; } ) ; return products ; }
Adds current date to product added date when smashing into DB
Adds current date to product added date when smashing into DB