- 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,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@@ -2865,6 +2865,7 @@ module.exports = {
|
||||
'user.profile.img': 1,
|
||||
'user.profile.qualifica': 1,
|
||||
'user.profile.note': 1,
|
||||
'profile.da_contattare': 1,
|
||||
});
|
||||
if (qa1) query = [...query, ...qa1];
|
||||
query.push({ $unwind: '$user' });
|
||||
@@ -2915,6 +2916,7 @@ module.exports = {
|
||||
'user.profile.img': 1,
|
||||
'user.profile.qualifica': 1,
|
||||
'user.profile.note': 1,
|
||||
'profile.da_contattare': 1,
|
||||
});
|
||||
if (qa1) query = [...query, ...qa1];
|
||||
query.push({ $unwind: '$user' });
|
||||
|
||||
@@ -53,6 +53,7 @@ module.exports = {
|
||||
FILTER_USER_ONLINE_6_MESI: 268435456,
|
||||
FILTER_NOTE: 536870912,
|
||||
FILTER_SENZA_NOTE: 1073741824,
|
||||
FILTER_DA_CONTATTARE: 2147483648,
|
||||
|
||||
OPTIONS_SEARCH_ONLY_FULL_WORDS: 1,
|
||||
OPTIONS_SEARCH_USER_ONLY_FULL_WORDS: 2,
|
||||
@@ -969,6 +970,7 @@ module.exports = {
|
||||
adType: 1,
|
||||
photos: 1,
|
||||
note: 1,
|
||||
da_contattare: 1,
|
||||
descr: 1,
|
||||
date_created: 1,
|
||||
date_updated: 1,
|
||||
@@ -989,6 +991,7 @@ module.exports = {
|
||||
'profile.mycircuits': 1,
|
||||
'profile.qualifica': 1,
|
||||
'profile.note': 1,
|
||||
'profile.da_contattare': 1,
|
||||
'profile.resid_province': 1,
|
||||
'profile.resid_card': 1,
|
||||
'profile.username_telegram': 1,
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.1.16
|
||||
1.1.17
|
||||
Reference in New Issue
Block a user