- Billettera

- Lista Ingressi
 - Send a Tutti la propria Lavagna.
This commit is contained in:
Paolo Arena
2020-02-19 16:09:16 +01:00
parent eccb5bbb57
commit 26715cda44
23 changed files with 1740 additions and 226 deletions

View File

@@ -145,10 +145,10 @@ ExtraListSchema.statics.findByCellAndNameSurname = function (idapp, cell_complet
};
ExtraListSchema.statics.findByIndOrder = function (idapp, ind_order) {
const User = this;
const ExtraList = this;
try {
return User.findOne({
return ExtraList.findOne({
'idapp': idapp,
'ind_order': ind_order,
});
@@ -321,13 +321,6 @@ ExtraListSchema.statics.ImportData = async function (locale, idapp, strdata) {
};
if (tools.INITDB_FIRSTIME) {
console.log(' createIndex User Index...');
// ExtraListSchema.index({ username: 'text', name: 'text', surname: 'text', email: 'text' });
// ExtraListSchema.index({ name: 'name' });
// ExtraListSchema.index({ name: 1 });
// ExtraListSchema.index({ surname: 1 });
}
const ExtraList = mongoose.model('ExtraList', ExtraListSchema);