Step 2: Creating page Messages: userlist last messages + a page for all the messages received and sent.

This commit is contained in:
Paolo Arena
2019-10-27 00:37:10 +02:00
parent e6c4053ccf
commit 5307c04151
9 changed files with 106 additions and 60 deletions

View File

@@ -19,15 +19,6 @@ const OperatorSchema = new Schema({
username: {
type: String,
},
name: {
type: String,
},
surname: {
type: String,
},
email: {
type: String,
},
cell: {
type: String,
},
@@ -54,14 +45,6 @@ const OperatorSchema = new Schema({
},
});
OperatorSchema.statics.getEmailByUsername = async function (idapp, username) {
const Operator = this;
return await Operator.findOne({idapp, username}, (err, arrrec) => {
return (arrrec) ? arrrec.email : '';
});
};
OperatorSchema.statics.executeQueryTable = function (idapp, params) {
return tools.executeQueryTable(this, idapp, params);
};