piccole modifiche...

This commit is contained in:
Surya Paolo
2025-01-12 21:29:05 +01:00
parent c631ca9d6a
commit 45be5038b9
9 changed files with 15 additions and 34 deletions

View File

@@ -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) {