fix button registration disabled
Conto Comunitario... passo 2
This commit is contained in:
@@ -1656,7 +1656,7 @@ UserSchema.statics.getUserProfileByUsername = async function (
|
||||
'useraport.profile.img': 1,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
let regexpusername = new RegExp(`^${username}$`, 'i');
|
||||
|
||||
const myfind = {
|
||||
@@ -1993,7 +1993,7 @@ UserSchema.statics.setFriendsCmd = async function (req, idapp, usernameOrig, use
|
||||
|
||||
const userprofile = await User.getInfoFriendByUsername(idapp, usernameDest);
|
||||
const myuser = await User.getInfoFriendByUsername(idapp, usernameOrig);
|
||||
ris = {rec, userprofile, myuser };
|
||||
ris = { rec, userprofile, myuser };
|
||||
} else if (cmd === shared_consts.FRIENDSCMD.REQFRIEND) {
|
||||
// Aggiungo la richiesta di Amicizia a me
|
||||
const foundIfAlreadyAskFriend = await User.findOne({
|
||||
@@ -4538,11 +4538,13 @@ UserSchema.statics.addExtraInfo = async function (idapp, recUser, recUserSave) {
|
||||
const circuitobj = await Circuit.getCircuitsByUsername(idapp, recUser.username, recUser);
|
||||
|
||||
const useraccounts = await Account.getUserAccounts(idapp, recUser.username);
|
||||
|
||||
|
||||
for (const group of listManageGroups) {
|
||||
const myaccounts = await Account.getGroupAccounts(idapp, group.groupname);
|
||||
if (myaccounts && myaccounts.length > 0)
|
||||
group.account = myaccounts[0]
|
||||
group.account = myaccounts[0];
|
||||
else
|
||||
group.account = null;
|
||||
}
|
||||
|
||||
recUser.profile = { ...recUser.profile, ...circuitobj, useraccounts };
|
||||
|
||||
Reference in New Issue
Block a user