nuova veste grafica: myskills, mygoods, mybachecas, myhosps,
- cambiato id (da numero a stringa)
This commit is contained in:
@@ -1602,6 +1602,8 @@ UserSchema.statics.getUserProfileByUsername = async function (
|
||||
'profile.calc': 1,
|
||||
'profile.handshake': 1,
|
||||
'profile.friends': 1,
|
||||
'profile.favorite': 1,
|
||||
'profile.bookmark': 1,
|
||||
email: 1,
|
||||
date_reg: 1,
|
||||
'useraport.username': 1,
|
||||
@@ -1646,6 +1648,8 @@ UserSchema.statics.getUserProfileByUsername = async function (
|
||||
'profile.calc': 1,
|
||||
'profile.handshake': 1,
|
||||
'profile.friends': 1,
|
||||
'profile.favorite': 1,
|
||||
'profile.bookmark': 1,
|
||||
email: 1,
|
||||
date_reg: 1,
|
||||
'useraport.username': 1,
|
||||
@@ -1691,6 +1695,8 @@ UserSchema.statics.getUserProfileByUsername = async function (
|
||||
'profile.calc': 1,
|
||||
'profile.handshake': 1,
|
||||
'profile.friends': 1,
|
||||
'profile.favorite': 1,
|
||||
'profile.bookmark': 1,
|
||||
'mycities': 1,
|
||||
'comune': 1,
|
||||
email: 1,
|
||||
@@ -1898,7 +1904,7 @@ UserSchema.statics.removeReqFriend = async function (
|
||||
|
||||
// Rimuovo il Favorite
|
||||
UserSchema.statics.removeFavorite = async function (
|
||||
idapp, id, tab) {
|
||||
idapp, username, id, tab) {
|
||||
return await User.updateOne({ idapp, username },
|
||||
{ $pull: { 'profile.favorite': { id: { $in: [id] }, tab } } });
|
||||
};
|
||||
@@ -1911,7 +1917,7 @@ UserSchema.statics.addFavorite = async function (
|
||||
};
|
||||
// Rimuovo il Bookmark
|
||||
UserSchema.statics.removeBookmark = async function (
|
||||
idapp, id, tab) {
|
||||
idapp, username, id, tab) {
|
||||
return await User.updateOne({ idapp, username },
|
||||
{ $pull: { 'profile.bookmark': { id: { $in: [id] }, tab } } });
|
||||
};
|
||||
@@ -2774,7 +2780,9 @@ function getWhatToShow(idapp, username) {
|
||||
date_reg: 1,
|
||||
'profile.friends': 1,
|
||||
'profile.handshake': 1,
|
||||
};
|
||||
'profile.favorite': 1,
|
||||
'profile.bookmark': 1,
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -2797,7 +2805,9 @@ function getWhatToShow_Unknown(idapp, username) {
|
||||
date_reg: 1,
|
||||
'profile.handshake': 1,
|
||||
'profile.friends': 1,
|
||||
}
|
||||
'profile.favorite': 1,
|
||||
'profile.bookmark': 1,
|
||||
}
|
||||
}
|
||||
|
||||
UserSchema.statics.getWhatToShow_IfFriends = async function (idapp, username) {
|
||||
@@ -2823,7 +2833,9 @@ UserSchema.statics.getWhatToShow_IfFriends = async function (idapp, username) {
|
||||
groups: 1,
|
||||
'profile.handshake': 1,
|
||||
'profile.friends': 1,
|
||||
};
|
||||
'profile.favorite': 1,
|
||||
'profile.bookmark': 1,
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user