diff --git a/src/server/models/product.js b/src/server/models/product.js index 91256b7..4021336 100755 --- a/src/server/models/product.js +++ b/src/server/models/product.js @@ -40,7 +40,7 @@ const productSchema = new Schema({ category: { type: Array, }, - prezzo_ivato: { + prezzo_ivato: { // Con IVA type: Number }, perc_iva: { // 4, 10, 22 & @@ -187,6 +187,9 @@ module.exports.getProductByID = function (id, callback) { Product.findById(id, callback); } + + // const Product = mongoose.model('Product', ProductSchema); // module.exports = { Product }; +// PROVA