Pagina con i link dei Canali territoriali di RISO
Lista Tabelle "Aggiungi" da errore userId... Aggiunto "Servizi" e alcune sue sottocategorie Aggiunto anche la conversione della foto piccola alla Foto Profilo
This commit is contained in:
@@ -21,14 +21,20 @@ const ProvinceSchema = new Schema({
|
||||
_id: {
|
||||
type: Number,
|
||||
},
|
||||
reg: {
|
||||
type: String,
|
||||
},
|
||||
prov: {
|
||||
type: String,
|
||||
unique: true,
|
||||
// unique: true,
|
||||
maxlength: 3,
|
||||
},
|
||||
descr: {
|
||||
type: String,
|
||||
},
|
||||
link_grp: {
|
||||
type: String,
|
||||
},
|
||||
}, { _id : false });
|
||||
|
||||
|
||||
@@ -75,7 +81,7 @@ ProvinceSchema.statics.executeQueryPickup = async function(idapp, params) {
|
||||
ProvinceSchema.statics.findAllIdApp = async function(idapp) {
|
||||
const myfind = {};
|
||||
|
||||
return Province.find(myfind);
|
||||
return Province.find(myfind).sort({reg: 1, prov: 1});
|
||||
};
|
||||
|
||||
const Province = mongoose.model('Province', ProvinceSchema);
|
||||
|
||||
Reference in New Issue
Block a user