poter visualizzare i propri beni e servizi anche se non sei registrato alla app !

This commit is contained in:
Surya Paolo
2023-01-04 02:09:42 +01:00
parent 18b827f5f4
commit dd1c9d573f
5 changed files with 30 additions and 6 deletions

View File

@@ -2695,6 +2695,15 @@ UserSchema.statics.getAskedFriendsByUsername = async function (idapp, username)
UserSchema.statics.getFriendsByUsername = async function (idapp, username) {
if (!username) {
return {
listFriends: [],
listRequestFriends: [],
listTrusted: [],
listSentRequestFriends: [],
}
}
try {
const whatToShow = getWhatToShow(idapp, username);
const whatToShow_Unknown = getWhatToShow_Unknown(idapp, username);