- aggiunto anche nei beni, servizi e ospitalità la possibilità di aggiungerli come "Gruppo"
This commit is contained in:
@@ -204,9 +204,6 @@ const UserSchema = new mongoose.Schema({
|
||||
aportador_solidario_ind_order: {
|
||||
type: Number,
|
||||
},
|
||||
note: {
|
||||
type: String,
|
||||
},
|
||||
deleted: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
@@ -360,6 +357,9 @@ const UserSchema = new mongoose.Schema({
|
||||
biografia: {
|
||||
type: String,
|
||||
},
|
||||
note: {
|
||||
type: String,
|
||||
},
|
||||
qualifica: {
|
||||
type: String,
|
||||
},
|
||||
@@ -1901,6 +1901,7 @@ UserSchema.statics.getUserProfileByUsername = async function (
|
||||
'profile.mycircuits': 1,
|
||||
'profile.qualifica': 1,
|
||||
'profile.biografia': 1,
|
||||
'profile.note': 1,
|
||||
'profile.teleg_id': 1,
|
||||
'profile.username_telegram': 1,
|
||||
'profile.firstname_telegram': 1,
|
||||
@@ -1947,6 +1948,7 @@ UserSchema.statics.getUserProfileByUsername = async function (
|
||||
'profile.mycircuits': 1,
|
||||
'profile.qualifica': 1,
|
||||
'profile.biografia': 1,
|
||||
'profile.note': 1,
|
||||
'profile.teleg_id': 1,
|
||||
'profile.username_telegram': 1,
|
||||
'profile.firstname_telegram': 1,
|
||||
@@ -1994,6 +1996,7 @@ UserSchema.statics.getUserProfileByUsername = async function (
|
||||
'profile.mycircuits': 1,
|
||||
'profile.qualifica': 1,
|
||||
'profile.biografia': 1,
|
||||
'profile.note': 1,
|
||||
'profile.teleg_id': 1,
|
||||
'profile.username_telegram': 1,
|
||||
'profile.firstname_telegram': 1,
|
||||
@@ -3419,6 +3422,7 @@ function getWhatToShow(idapp, username) {
|
||||
'profile.mycircuits': 1,
|
||||
'profile.qualifica': 1,
|
||||
'profile.biografia': 1,
|
||||
'profile.note': 1,
|
||||
'profile.username_telegram': 1,
|
||||
'profile.firstname_telegram': 1,
|
||||
'profile.lastname_telegram': 1,
|
||||
@@ -3438,6 +3442,7 @@ function getWhatToShow(idapp, username) {
|
||||
date_reg: 1,
|
||||
'profile.friends': 1,
|
||||
'profile.handshake': 1,
|
||||
'profile.note': 1,
|
||||
};
|
||||
|
||||
}
|
||||
@@ -3461,6 +3466,7 @@ function getWhatToShow_Unknown(idapp, username) {
|
||||
'profile.resid_card': 1,
|
||||
'profile.calc': 1,
|
||||
date_reg: 1,
|
||||
'profile.note': 1,
|
||||
'profile.handshake': 1,
|
||||
'profile.friends': 1,
|
||||
'profile.favorite': 1,
|
||||
@@ -3494,6 +3500,7 @@ UserSchema.statics.getWhatToShow_IfFriends = async function (idapp, username) {
|
||||
date_reg: 1,
|
||||
groups: 1,
|
||||
'profile.handshake': 1,
|
||||
'profile.note': 1,
|
||||
'profile.friends': 1,
|
||||
'profile.favorite': 1,
|
||||
'profile.bookmark': 1,
|
||||
@@ -5240,6 +5247,7 @@ UserSchema.statics.getQueryLastUsersStretteDiMano = async function (idapp) {
|
||||
profile: {
|
||||
img: "$userfriend.profile.img",
|
||||
resid_province: "$userfriend.profile.resid_province",
|
||||
note: "$userfriend.profile.note",
|
||||
},
|
||||
username: "$userfriend.username",
|
||||
name: "$userfriend.name",
|
||||
@@ -5252,6 +5260,7 @@ UserSchema.statics.getQueryLastUsersStretteDiMano = async function (idapp) {
|
||||
img: "$profile.img",
|
||||
handshake: "$profile.handshake",
|
||||
resid_province: "$profile.resid_province",
|
||||
note: "$profile.note",
|
||||
},
|
||||
},
|
||||
handshakeDate: { $first: "$profile.handshake.date" },
|
||||
@@ -5345,6 +5354,7 @@ UserSchema.statics.getQueryReceiveRISUsers = function (idapp, hours) {
|
||||
idapp: 1,
|
||||
"profile.img": 1,
|
||||
'profile.handshake': 1,
|
||||
'profile.note': 1,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user