Circuits OK

Accounts Ok
Movements OK
This commit is contained in:
Paolo Arena
2022-09-14 11:32:04 +02:00
parent 2f24a02a63
commit 845e244470
90 changed files with 362 additions and 258 deletions

View File

@@ -822,6 +822,8 @@ const MyTelegramBot = {
try {
const cl = getclTelegByidapp(idapp);
if (!cl)
return false;
const langdest = myuser.lang;
const telegid = myuser.profile.teleg_id;
@@ -908,6 +910,8 @@ const MyTelegramBot = {
try {
const cl = getclTelegByidapp(idapp);
if (!cl)
return false;
const {SendNotif} = require('../models/sendnotif');
@@ -949,7 +953,7 @@ const MyTelegramBot = {
}
if (sendnotif) {
const req = this.getReqByPar(idapp, username);
const req = tools.getReqByPar(idapp, username);
// CREATE NOTIFICATION IN TABLE SENDNOTIF
await SendNotif.createNewNotifToSingleUser(req, null, paramsObj, true, typedir, typeid);
}
@@ -3820,7 +3824,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]) : '',
circuitId: dataarr[4] ? dataarr[4] : '',
};
}
}
@@ -3942,7 +3946,7 @@ if (true) {
if (circuit) {
cmd = shared_consts.CIRCUITCMD.SET;
const foundIfAlreadyCircuit = await User.ifAlreadyInCircuit(user.idapp, data.username, circuit.name);
constF foundIfAlreadyCircuit = await User.ifAlreadyInCircuit(user.idapp, data.username, circuit.name);
if (!foundIfAlreadyCircuit) {
// Aggiungilo nel Circuito