- Billettera
- Lista Ingressi - Send a Tutti la propria Lavagna.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user