Skip to content
Snippets Groups Projects
Commit 324b15c6 authored by Martin Lehoux's avatar Martin Lehoux
Browse files

migre les images de produits

parent e9e55d30
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,8 @@ mongoose.connect('mongodb://localhost/bonober', err => {
Produit.create({
nom: product.name,
prixUnitaire: product.unitPrice,
categorie: product.category
categorie: product.category,
image: product.imageURL.split("/")[-1]
});
console.log(product.name, "migrated");
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment