Lista Doni Navi

This commit is contained in:
Paolo Arena
2020-03-21 10:28:26 +01:00
parent fbc85ce06a
commit b2696d1898
139 changed files with 463 additions and 80 deletions

5
src/server/models/newstosent.js Normal file → Executable file
View File

@@ -64,7 +64,9 @@ const NewstosentSchema = new Schema({
});
NewstosentSchema.statics.getFieldsForSearch = function () {
return ['name', 'surname', 'email']
return [{ field: 'name', type: tools.FieldType.string },
{ field: 'surname', type: tools.FieldType.string },
{ field: 'email', type: tools.FieldType.string }]
};
NewstosentSchema.statics.executeQueryTable = function (idapp, params) {
@@ -166,7 +168,6 @@ NewstosentSchema.statics.isActivated = async function (_id) {
};
const Newstosent = mongoose.model('Newstosent', NewstosentSchema);
module.exports = { Newstosent };