Corretto Duplicazione Sito (es: da 1 a 14)
This commit is contained in:
@@ -1759,7 +1759,7 @@ module.exports = {
|
||||
let num = 0;
|
||||
|
||||
for (let ind = 0; ind < arrrec.length; ind++) {
|
||||
let newrec = new mythistable(arrrec[ind]._doc);
|
||||
let newrec = new mythistable(arrrec[ind]);
|
||||
newrec._id = new ObjectID();
|
||||
newrec.idapp = idappdest;
|
||||
|
||||
@@ -2704,7 +2704,7 @@ module.exports = {
|
||||
refreshAllTablesInMem(idapp, table, updatebot, username) {
|
||||
const telegrambot = require('../telegram/telegrambot');
|
||||
|
||||
if (table === shared_consts.TAB_MYBOTS || updatebot) {
|
||||
if (table === shared_consts.TAB_BOTS || updatebot) {
|
||||
telegrambot.reloadMenuBot(idapp);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@ const Pickup = require('../models/pickup');
|
||||
const {Newstosent} = require('../models/newstosent');
|
||||
const {MyPage} = require('../models/mypage');
|
||||
const {MyBot} = require('../models/bot');
|
||||
const {CfgServer} = require('../models/cfgserver');
|
||||
const {CalZoom} = require('../models/calzoom');
|
||||
const {Gallery} = require('../models/gallery');
|
||||
const {TemplEmail} = require('../models/templemail');
|
||||
@@ -139,8 +140,10 @@ module.exports = {
|
||||
mytable = Gallery;
|
||||
else if (tablename === 'mypage')
|
||||
mytable = MyPage;
|
||||
else if (tablename === 'mybots')
|
||||
else if (tablename === 'bots')
|
||||
mytable = MyBot;
|
||||
else if (tablename === 'cfgservers')
|
||||
mytable = CfgServer;
|
||||
else if (tablename === 'calzoom')
|
||||
mytable = CalZoom;
|
||||
else if (tablename === 'templemail')
|
||||
|
||||
@@ -68,7 +68,7 @@ module.exports = {
|
||||
TAB_SETTINGS: 'settings',
|
||||
TAB_SITES: 'sites',
|
||||
TAB_MYGROUPS: 'mygroups',
|
||||
TAB_MYBOTS: 'mybots',
|
||||
TAB_BOTS: 'bots',
|
||||
TAB_USERS: 'users',
|
||||
|
||||
KEY_TO_CRYPTED: ['PWD_FROM'],
|
||||
@@ -123,7 +123,7 @@ module.exports = {
|
||||
'circuits',
|
||||
'movements'],
|
||||
TABLES_USER_ID: ['mygroups', 'myskills', 'mybachecas', 'myhosps', 'mygoods'],
|
||||
TABLES_UPDATE_LASTMODIFIED: ['myskills', 'mybachecas', 'myhosps', 'mygoods', 'mybots'],
|
||||
TABLES_UPDATE_LASTMODIFIED: ['myskills', 'mybachecas', 'myhosps', 'mygoods', 'bots'],
|
||||
|
||||
TABLES_PERM_CHANGE_FOR_USERS: ['myskills', 'mybachecas', 'myhosps', 'mygoods'],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user