Lista Doni Navi
This commit is contained in:
5
src/server/models/newstosent.js
Normal file → Executable file
5
src/server/models/newstosent.js
Normal file → Executable 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 };
|
||||
|
||||
Reference in New Issue
Block a user