Add to the Circuit

Remove to the Circuit
Revoke request
Users Admins
This commit is contained in:
paoloar77
2022-09-02 02:25:38 +02:00
parent f55d69b7fe
commit 6bee366547
20 changed files with 598 additions and 274 deletions

View File

@@ -332,6 +332,16 @@ module.exports = {
} else {
invia = false;
}
} else if (params.typemsg === shared_consts.TypeMsg.SEND_TO_CIRCUIT) {
if (params.circuitnameDest) {
addquery = {
'profile.mycircuits': {
$elemMatch: {circuitname: {$eq: params.circuitnameDest}},
},
};
} else {
invia = false;
}
}
let numrec = 0;