- Iscrizione Conacreis

This commit is contained in:
Paolo Arena
2021-06-04 10:07:57 +02:00
parent cf97870cc7
commit 9d5eda50ae
20 changed files with 3048 additions and 1525 deletions

View File

@@ -45,6 +45,9 @@ const productSchema = new Schema({
price: {
type: Number
},
after_price: {
type: String
},
color: {
type: String
},
@@ -101,7 +104,7 @@ module.exports.executeQueryTable = function (idapp, params) {
};
module.exports.findAllIdApp = async function (idapp, code) {
let myfind = { idapp };
let myfind = { idapp, active: true };
if (code) {
myfind = { ...myfind, code }