- pagine admin: Accounts, Movements e Circuits.

- add change min e max range circuiti (per tutti i record).
This commit is contained in:
Surya Paolo
2023-02-06 22:58:10 +01:00
parent 022ad11747
commit 6e7eb31d38
8 changed files with 219 additions and 13 deletions

View File

@@ -35,6 +35,7 @@ const i18n = require('i18n');
const FILELOG = 'filelog.txt';
const FILEEVENTS = 'logevents.txt';
const FILEMANAGERS = 'logmanagers.txt';
const FILETRANSACTION = 'logtrans.txt';
const FILEERRLOGIN = 'errlogin.txt';
const FILESOSTITUZIONI = 'log_sostituzioni.txt';
const FILEIP_TO_BAN = 'log_iptoban.txt';
@@ -948,6 +949,15 @@ module.exports = {
},
sendMsgTelegramToAdmin: async function (idapp, msg) {
const telegrambot = require('../telegram/telegrambot');
const idtelegram = telegrambot.ADMIN_IDTELEGRAM_SERVER;
await telegrambot.sendMsgTelegramByIdTelegram(idapp, idtelegram, msg);
},
sendNotifAndMsgTelegram: async function (idapp, userId, objmsg, telegram, msgextrateleg) {
if (userId) {
@@ -2950,6 +2960,9 @@ module.exports = {
writeManagersLog(mystr) {
this.writelogfile(mystr, FILEMANAGERS);
},
writeTransactionLog(mystr) {
this.writelogfile(mystr, FILETRANSACTION);
},
writeErrorLog(mystr) {
this.writelogfile(mystr, FILEERRLOGIN);
},