Bugfixes in sending campaigns

This commit is contained in:
Tomas Bures 2018-09-27 21:32:35 +02:00
parent 2d667523a1
commit 1448d9e914
34 changed files with 95 additions and 55 deletions

View file

@ -1,7 +1,7 @@
'use strict';
const config = require('config');
const log = require('npmlog');
const log = require('./lib/log');
const appBuilder = require('./app-builder');
const http = require('http');
const triggers = require('./services/triggers');
@ -29,8 +29,6 @@ if (config.title) {
process.title = config.title;
}
log.level = config.log.level;
function startHTTPServer(appType, appName, port, callback) {
const app = appBuilder.createApp(appType);
@ -82,6 +80,15 @@ dbcheck(err => { // Check if database needs upgrading before starting the server
.then(() => shares.regenerateRoleNamesTable())
.then(() => shares.rebuildPermissions())
/*
.then(() =>
testServer(() => {
senders.spawn(() => {
});
})
);
*/
.then(() =>
executor.spawn(() => {
testServer(() => {