Aggiornamento PiuChebuono: lista Totali del Produttore.
This commit is contained in:
@@ -70,7 +70,7 @@ module.exports.executeQueryTable = function (idapp, params) {
|
||||
module.exports.findAllIdApp = async function (idapp) {
|
||||
const myfind = { idapp };
|
||||
|
||||
return await Gasordine.find(myfind);
|
||||
return await Gasordine.find(myfind).sort({dataora_chiusura_ordini: -1}).lean();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -27,6 +27,9 @@ const productInfoSchema = new Schema({
|
||||
unique: true,
|
||||
required: true,
|
||||
},
|
||||
codice: { // codice interno prodotto
|
||||
type: String,
|
||||
},
|
||||
id_wp: { // id in wordpress
|
||||
type: String,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user