Circuits...
Circuits Fido e Max Qta Fixed error eslint: 7.0.0 is OK
This commit is contained in:
@@ -712,7 +712,7 @@ const MyTelegramBot = {
|
||||
const cl = getclTelegByidapp(idapp);
|
||||
if (cl && idtelegram) {
|
||||
|
||||
return cl.sendMsg(idtelegram, text, null, MyForm, message_id,
|
||||
return await cl.sendMsg(idtelegram, text, null, MyForm, message_id,
|
||||
chat_id, ripr_menuPrec);
|
||||
}
|
||||
|
||||
@@ -883,11 +883,11 @@ const MyTelegramBot = {
|
||||
keyb = cl.getInlineKeyboard(myuser.lang, [
|
||||
{
|
||||
text: '✅ Accetta ' + myuser.username,
|
||||
callback_data: InlineConferma.RISPOSTA_SI + myfunc + tools.SEP + myuser.username + tools.SEP + '' + tools.SEP + groupid,
|
||||
callback_data: InlineConferma.RISPOSTA_SI + myfunc + tools.SEP + myuser.username + tools.SEP + '' + tools.SEP + '' + tools.SEP + groupid,
|
||||
},
|
||||
{
|
||||
text: '🚫 Rifiuta ' + myuser.username,
|
||||
callback_data: InlineConferma.RISPOSTA_NO + myfunc + tools.SEP + myuser.username + tools.SEP + '' + tools.SEP + groupid,
|
||||
callback_data: InlineConferma.RISPOSTA_NO + myfunc + tools.SEP + myuser.username + tools.SEP + '' + tools.SEP + '' + tools.SEP + groupid,
|
||||
},
|
||||
]);
|
||||
}
|
||||
@@ -2517,7 +2517,7 @@ class Telegram {
|
||||
try {
|
||||
const msg = await MsgTemplate.getMsgByTitleAndLang(myuser.idapp, title, myuser.lang);
|
||||
const mytext = tools.convertSpecialTags(myuser, msg.body);
|
||||
return this.sendMsg(myuser.profile.teleg_id, mytext);
|
||||
return await this.sendMsg(myuser.profile.teleg_id, mytext);
|
||||
} catch (e) {
|
||||
console.error('ERR sendMsgByTemplate', e);
|
||||
}
|
||||
@@ -2536,7 +2536,7 @@ class Telegram {
|
||||
const mymsg = await MsgTemplate.getMsgByTitleAndLang(tools.RISO, title, langcode);
|
||||
const mytext = tools.convertSpecialTags(null, mymsg.body);
|
||||
if (id > 0)
|
||||
return this.sendMsg(id, mytext);
|
||||
return await this.sendMsg(id, mytext);
|
||||
} catch (e) {
|
||||
console.error('ERR sendMsgByTemplateByMsgStrutt', e);
|
||||
}
|
||||
@@ -2555,7 +2555,7 @@ class Telegram {
|
||||
const text = getstr(langcode, keytext);
|
||||
const mytext = tools.convertSpecialTags(null, text);
|
||||
if (id > 0)
|
||||
return this.sendMsg(id, mytext);
|
||||
return await this.sendMsg(id, mytext);
|
||||
} catch (e) {
|
||||
console.error('ERR sendMsgByTextByMsgStrutt', e);
|
||||
}
|
||||
@@ -2713,7 +2713,7 @@ class Telegram {
|
||||
|
||||
async setCmdToUsername(rec, username, cmd_to_set, valuebool) {
|
||||
if (cmd_to_set === Cmd.VALIDATE_REGISTRATION) {
|
||||
return User.setVerifiedByAportador(rec.user.idapp, username, valuebool);
|
||||
return await User.setVerifiedByAportador(rec.user.idapp, username, valuebool);
|
||||
} else if (cmd_to_set === Cmd.RICHIESTA_GRUPPO) {
|
||||
|
||||
}
|
||||
@@ -3521,7 +3521,7 @@ class Telegram {
|
||||
const username = rec ? rec.username_bo : '';
|
||||
|
||||
console.log('Msg inviato a ', username, '(', id, ')', text);
|
||||
return this.sendMsg(id, text, menu, form, msg_id, chat_id, ripr_menuPrec);
|
||||
return await this.sendMsg(id, text, menu, form, msg_id, chat_id, ripr_menuPrec);
|
||||
}
|
||||
|
||||
getmenuKey(mymenu, lang) {
|
||||
@@ -3808,6 +3808,7 @@ if (true) {
|
||||
username: '',
|
||||
userDest: '',
|
||||
groupId: 0,
|
||||
circuitId: '',
|
||||
};
|
||||
|
||||
const datastr = callbackQuery.data;
|
||||
@@ -3819,6 +3820,7 @@ if (true) {
|
||||
username: dataarr[1] ? dataarr[1] : '',
|
||||
userDest: dataarr[2] ? dataarr[2] : '',
|
||||
groupId: dataarr[3] ? parseInt(dataarr[3]) : '',
|
||||
circuitId: dataarr[4] ? parseInt(dataarr[4]) : '',
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -3943,7 +3945,7 @@ if (true) {
|
||||
const foundIfAlreadyCircuit = await User.ifAlreadyInCircuit(user.idapp, data.username, circuit.name);
|
||||
|
||||
if (!foundIfAlreadyCircuit) {
|
||||
// Aggiungilo nel Gruppo
|
||||
// Aggiungilo nel Circuito
|
||||
await User.setCircuitCmd(user.idapp, data.username, circuit.name, cmd, 0, username_action);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user