Notifications
Settings Notifications User Panel
This commit is contained in:
@@ -28,7 +28,6 @@ require('./db/mongoose');
|
||||
|
||||
const {Settings} = require('./models/settings');
|
||||
|
||||
const globalTables = require('./tools/globalTables');
|
||||
|
||||
const i18n = require('i18n');
|
||||
|
||||
@@ -133,8 +132,13 @@ myLoad().then(ris => {
|
||||
|
||||
i18n.configure({
|
||||
locales: ['it', 'enUs', 'es', 'fr', 'pt', 'si'],
|
||||
defaultLocale: 'it',
|
||||
// cookie: 'cook',
|
||||
directory: __dirname + '/locales',
|
||||
api: {
|
||||
'__': 'translate',
|
||||
'__n': 'translateN'
|
||||
},
|
||||
});
|
||||
|
||||
app.use(cors({
|
||||
@@ -245,6 +249,8 @@ async function mystart() {
|
||||
|
||||
// await estraiTutteLeImmagini();
|
||||
|
||||
await tools.getApps();
|
||||
|
||||
if (process.env.PROD !== 1) {
|
||||
|
||||
testmsgwebpush();
|
||||
@@ -266,6 +272,7 @@ async function mystart() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
telegrambot = require('./telegram/telegrambot');
|
||||
|
||||
await inizia();
|
||||
@@ -437,6 +444,9 @@ async function estraiImmagini(table) {
|
||||
|
||||
let arrlist;
|
||||
|
||||
const globalTables = require('./tools/globalTables');
|
||||
|
||||
|
||||
const mytable = globalTables.getTableByTableName(table);
|
||||
if (!mytable)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user