Aggiornamento PiuChebuono: lista Totali del Produttore.

This commit is contained in:
Surya Paolo
2025-02-26 19:08:00 +01:00
parent 57679fe649
commit 757bf44c68
5 changed files with 20 additions and 7 deletions

View File

@@ -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();
};

View File

@@ -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,
},