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

ce n'est pas du python

parent 324b15c6
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ mongoose.connect('mongodb://localhost/bonober', err => { ...@@ -27,7 +27,7 @@ mongoose.connect('mongodb://localhost/bonober', err => {
nom: product.name, nom: product.name,
prixUnitaire: product.unitPrice, prixUnitaire: product.unitPrice,
categorie: product.category, categorie: product.category,
image: product.imageURL.split("/")[-1] image: product.imageURL.split("/").pop()
}); });
console.log(product.name, "migrated"); 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