piccole modifiche...
This commit is contained in:
@@ -367,7 +367,7 @@ module.exports = {
|
||||
} else if (params.typemsg === shared_consts.TypeMsg.SEND_TO_NON_SOCI) {
|
||||
addquery = { 'profile.socio': false };
|
||||
} else if (params.typemsg === shared_consts.TypeMsg.SEND_TO_PAOLO) {
|
||||
addquery = { username: 'paoloar77' };
|
||||
addquery = { username: shared_consts.ADMIN_USER_SERVER };
|
||||
} else if (params.typemsg === shared_consts.TypeMsg.SEND_TO_USER) {
|
||||
addquery = { username: params.usernameDest };
|
||||
} else if (params.typemsg === shared_consts.TypeMsg.SEND_TO_MYSELF) {
|
||||
@@ -426,7 +426,7 @@ module.exports = {
|
||||
).lean();
|
||||
|
||||
if (!tools.sulServer()) {
|
||||
arrusers = await User.find({ idapp, username: telegrambot.ADMIN_USER_SERVER });
|
||||
arrusers = await User.find({ idapp, username: shared_consts.ADMIN_USER_SERVER });
|
||||
}
|
||||
|
||||
for (const user of arrusers) {
|
||||
|
||||
Reference in New Issue
Block a user