ver "0.5.9"
Saldo ora comprende anche le transazioni Pendenti (e le visualizza)
This commit is contained in:
@@ -781,6 +781,13 @@ router.patch('/chval', authenticate, async (req, res) => {
|
||||
flotta.col_prima);
|
||||
}
|
||||
|
||||
if (mydata.table === 'accounts') {
|
||||
if ('saldo' in fieldsvalue) {
|
||||
msg = 'l\'utente ' + req.user.username + ' ha variato il Saldo di ' + rec.username + ' a ' + fieldsvalue.saldo;
|
||||
telegrambot.sendMsgTelegramToTheManagers(idapp, msg);
|
||||
}
|
||||
}
|
||||
|
||||
if (mydata.table === 'users') {
|
||||
if (camporequisiti) {
|
||||
await User.checkIfSbloccatiRequisiti(idapp, allData, id);
|
||||
|
||||
@@ -128,9 +128,9 @@ router.get('/:username/:lastdataread/:idapp', authenticate, (req, res) => {
|
||||
// setTimeout(() => {
|
||||
|
||||
//++Todo: Ottimizzare ! Non occorre inviare tutti questi dati !!! Solo per il Circuito ?!
|
||||
const user = await User.getExtraInfoByUsername(idapp, req.user.username);
|
||||
const userprofile = await User.getExtraInfoByUsername(idapp, req.user.username);
|
||||
|
||||
return res.send({arrnotif, user } );
|
||||
return res.send({arrnotif, userprofile } );
|
||||
|
||||
}).catch((e) => {
|
||||
console.log(e.message);
|
||||
|
||||
Reference in New Issue
Block a user