Lista Doni Navi
This commit is contained in:
5
src/server/models/operator.js
Normal file → Executable file
5
src/server/models/operator.js
Normal file → Executable file
@@ -85,7 +85,10 @@ OperatorSchema.statics.getEmailByUsername = async function (idapp, username) {
|
||||
};
|
||||
|
||||
OperatorSchema.statics.getFieldsForSearch = function () {
|
||||
return ['name', 'surname', 'email', 'cell']
|
||||
return [{ field: 'name', type: tools.FieldType.string },
|
||||
{ field: 'surname', type: tools.FieldType.string },
|
||||
{ field: 'email', type: tools.FieldType.string },
|
||||
{ field: 'cell', type: tools.FieldType.string }]
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user