- Lista iscritti: aggiunto le note e il flag "Da Contattare"
This commit is contained in:
@@ -251,6 +251,7 @@ MyGroupSchema.statics.getWhatToShow = function (idapp, username) {
|
||||
website: 1,
|
||||
link_telegram: 1,
|
||||
note: 1,
|
||||
da_contattare: 1,
|
||||
admins: 1,
|
||||
blocked: 1,
|
||||
req_users: 1,
|
||||
|
||||
@@ -360,6 +360,9 @@ const UserSchema = new mongoose.Schema({
|
||||
note: {
|
||||
type: String,
|
||||
},
|
||||
da_contattare: {
|
||||
type: Boolean,
|
||||
},
|
||||
qualifica: {
|
||||
type: String,
|
||||
},
|
||||
@@ -1902,6 +1905,7 @@ UserSchema.statics.getUserProfileByUsername = async function (
|
||||
'profile.qualifica': 1,
|
||||
'profile.biografia': 1,
|
||||
'profile.note': 1,
|
||||
'profile.da_contattare': 1,
|
||||
'profile.teleg_id': 1,
|
||||
'profile.username_telegram': 1,
|
||||
'profile.firstname_telegram': 1,
|
||||
@@ -1949,6 +1953,7 @@ UserSchema.statics.getUserProfileByUsername = async function (
|
||||
'profile.qualifica': 1,
|
||||
'profile.biografia': 1,
|
||||
'profile.note': 1,
|
||||
'profile.da_contattare': 1,
|
||||
'profile.teleg_id': 1,
|
||||
'profile.username_telegram': 1,
|
||||
'profile.firstname_telegram': 1,
|
||||
@@ -1997,6 +2002,7 @@ UserSchema.statics.getUserProfileByUsername = async function (
|
||||
'profile.qualifica': 1,
|
||||
'profile.biografia': 1,
|
||||
'profile.note': 1,
|
||||
'profile.da_contattare': 1,
|
||||
'profile.teleg_id': 1,
|
||||
'profile.username_telegram': 1,
|
||||
'profile.firstname_telegram': 1,
|
||||
@@ -3423,6 +3429,7 @@ function getWhatToShow(idapp, username) {
|
||||
'profile.qualifica': 1,
|
||||
'profile.biografia': 1,
|
||||
'profile.note': 1,
|
||||
'profile.da_contattare': 1,
|
||||
'profile.username_telegram': 1,
|
||||
'profile.firstname_telegram': 1,
|
||||
'profile.lastname_telegram': 1,
|
||||
@@ -3443,6 +3450,7 @@ function getWhatToShow(idapp, username) {
|
||||
'profile.friends': 1,
|
||||
'profile.handshake': 1,
|
||||
'profile.note': 1,
|
||||
'profile.da_contattare': 1,
|
||||
};
|
||||
|
||||
}
|
||||
@@ -3467,6 +3475,7 @@ function getWhatToShow_Unknown(idapp, username) {
|
||||
'profile.calc': 1,
|
||||
date_reg: 1,
|
||||
'profile.note': 1,
|
||||
'profile.da_contattare': 1,
|
||||
'profile.handshake': 1,
|
||||
'profile.friends': 1,
|
||||
'profile.favorite': 1,
|
||||
@@ -3501,6 +3510,7 @@ UserSchema.statics.getWhatToShow_IfFriends = async function (idapp, username) {
|
||||
groups: 1,
|
||||
'profile.handshake': 1,
|
||||
'profile.note': 1,
|
||||
'profile.da_contattare': 1,
|
||||
'profile.friends': 1,
|
||||
'profile.favorite': 1,
|
||||
'profile.bookmark': 1,
|
||||
@@ -5355,6 +5365,7 @@ UserSchema.statics.getQueryReceiveRISUsers = function (idapp, hours) {
|
||||
"profile.img": 1,
|
||||
'profile.handshake': 1,
|
||||
'profile.note': 1,
|
||||
'profile.da_contattare': 1,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user