- corretto problema sulle Organizzazioni, non si correttamente chiedevano

- DataInizio e DataFine: creare un componente che controlli la data inizio e fine...
This commit is contained in:
Surya Paolo
2025-10-11 19:51:59 +02:00
parent 3f7eda05cf
commit 610961d22c
4 changed files with 35 additions and 60 deletions

View File

@@ -830,6 +830,7 @@ const MyTelegramBot = {
userDest = '',
name = '',
groupid = '',
circuitId = '',
regexpire = '',
groupname = ''
) {
@@ -946,16 +947,11 @@ const MyTelegramBot = {
text: textentrato + '✅ Abilita fiducia a ' + groupname,
callback_data:
InlineConferma.RISPOSTA_SI +
myfunc +
tools.SEP +
myuser.username +
tools.SEP +
'' +
tools.SEP +
'' +
tools.SEP +
groupid +
tools.SEP +
myfunc + tools.SEP +
myuser.username + tools.SEP +
'' + tools.SEP +
'' + tools.SEP +
circuitId + tools.SEP +
groupname,
},
/*{
@@ -977,15 +973,11 @@ const MyTelegramBot = {
text: '✅ Abilita fiducia a ' + myuser.username,
callback_data:
InlineConferma.RISPOSTA_SI +
myfunc +
tools.SEP +
myuser.username +
tools.SEP +
'' +
tools.SEP +
'' +
tools.SEP +
groupid,
myfunc + tools.SEP +
myuser.username + tools.SEP +
'' + tools.SEP +
'' + tools.SEP +
circuitId + tools.SEP,
},
/*{
text: '🚫 Rifiuta ' + myuser.username,
@@ -1008,16 +1000,11 @@ const MyTelegramBot = {
text: '✅ Fai entrare a ' + groupname,
callback_data:
InlineConferma.RISPOSTA_SI +
myfunc +
tools.SEP +
myuser.username +
tools.SEP +
'' +
tools.SEP +
'' +
tools.SEP +
groupid +
tools.SEP +
myfunc + tools.SEP +
myuser.username + tools.SEP +
'' + tools.SEP +
'' + tools.SEP +
circuitId + tools.SEP +
groupname,
},
/*{
@@ -1039,15 +1026,11 @@ const MyTelegramBot = {
text: '✅ Fai entrare a ' + myuser.username,
callback_data:
InlineConferma.RISPOSTA_SI +
myfunc +
tools.SEP +
myuser.username +
tools.SEP +
'' +
tools.SEP +
'' +
tools.SEP +
groupid,
myfunc + tools.SEP +
myuser.username + tools.SEP +
'' + tools.SEP +
'' + tools.SEP +
circuitId,
},
/*{
text: '🚫 Rifiuta ' + myuser.username,
@@ -4426,7 +4409,7 @@ if (true) {
action: dataarr[0],
username: dataarr[1] ? dataarr[1] : '',
userDest: dataarr[2] ? dataarr[2] : '',
groupId: dataarr[3] ? parseInt(dataarr[3]) : '',
groupId: dataarr[3] ? dataarr[3] : '',
circuitId: dataarr[4] ? dataarr[4] : '',
groupname: dataarr[5] ? dataarr[5] : '',
};
@@ -4463,25 +4446,7 @@ if (true) {
if (!!rec) {
if (!!user) {
if (data.action === InlineCmd.VOGLIO_IMBARCARMI) {
// Controlla se è qualificato!
const mydata = tools.AddDate(user.date_reg, 7);
// bot.editMessageText(tools.gettranslate('ADDED_TOLISTAINGRESSO', user.lang), opts);
} else if (data.action === InlineCmd.NON_VOGLIO_IMBARCARMI) {
await User.NonVoglioImbarcarmi(user.idapp, user.username);
const msgadd =
'[' +
user.username +
'] ' +
user.name +
' ' +
user.surname +
' ha risposto che NON VUOLE IMBARCARSI !';
await local_sendMsgTelegramToTheManagers(user.idapp, msgadd, msg, false); // Anche a STAFF
} else if (data.action === InlineZoomConferma.CONFERMA_ZOOM_PRESENZA) {
if (data.action === InlineZoomConferma.CONFERMA_ZOOM_PRESENZA) {
await User.setZoomPresenza(user.idapp, user._id, true);
} else if (data.action === InlineZoomConferma.NON_CONFERMA_ZOOM_PRESENZA) {
await User.setZoomPresenza(user.idapp, user._id, false);