- pagine admin: Accounts, Movements e Circuits.
- add change min e max range circuiti (per tutti i record).
This commit is contained in:
@@ -866,7 +866,10 @@ router.patch('/chval', authenticate, async (req, res) => {
|
||||
|
||||
if (mydata.table === 'accounts') {
|
||||
if ('saldo' in fieldsvalue) {
|
||||
msg = 'l\'utente ' + req.user.username + ' ha variato il Saldo di ' + rec.username + ' a ' + fieldsvalue.saldo;
|
||||
let circuito = '';
|
||||
if (rec.circuitId)
|
||||
circuit = await Circuit.getCircuitByCircuitId(rec.circuitId);
|
||||
msg = '[' + circuit.name + '] l\'utente ' + req.user.username + ' ha variato il Saldo di ' + rec.username + ' a ' + fieldsvalue.saldo + ' ' + circuit.symbol;
|
||||
telegrambot.sendMsgTelegramToTheManagers(idapp, msg);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user