Skip to content
Permalink
Browse files

Fix the import-data with the new version of our CSV

  • Loading branch information...
SeyZ committed Apr 3, 2018
1 parent 95fa11f commit 4d8026aaee518f4df0b2d56c3847bc1d36f8d839
Showing with 2 additions and 2 deletions.
  1. +2 −2 routes/products.js
@@ -32,9 +32,9 @@ router.post('/products/actions/import-data', Liana.ensureAuthenticated,
}

return models.products.create({
label: row[0].replace('//i5.walmartimages.com/asr/', '//s3-eu-west-1.amazonaws.com/forestadmin-test/livedemo/'),
label: row[0],
price: price,
picture: row[1]
picture: row[1].replace('//i5.walmartimages.com/asr/', '//s3-eu-west-1.amazonaws.com/forestadmin-test/livedemo/')
});
})
.then(() => {

0 comments on commit 4d8026a

Please sign in to comment.
You can’t perform that action at this time.