Fixed some bugs in subscription process
Added timezone selector to campaign scheduling Fixed problems with pausing campaign.
This commit is contained in:
parent
4113cb8476
commit
e3a5a3c4eb
23 changed files with 218 additions and 99 deletions
|
@ -5,17 +5,13 @@ const log = require('npmlog');
|
|||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
if (process.env.NODE_ENV !== 'test' || !fs.existsSync(path.join(__dirname, '..', '..', '..', 'config', 'test.toml'))) {
|
||||
log.error('e2e', 'This script only runs in test and config/test.toml (i.e. a dedicated test database) is present');
|
||||
if (process.env.NODE_ENV !== 'test' || !fs.existsSync(path.join(__dirname, '..', '..', '..', 'config', 'test.yaml'))) {
|
||||
log.error('e2e', 'This script only runs in test and config/test.yaml (i.e. a dedicated test database) is present');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (config.app.testServer.enabled !== true) {
|
||||
log.error('e2e', 'This script only runs if the testServer is enabled. Check config/test.toml');
|
||||
log.error('e2e', 'This script only runs if the testServer is enabled. Check config/test.yaml');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (config.app.www.port !== 3000) {
|
||||
log.error('e2e', 'This script requires Mailtrain to be running on port 3000. Check config/test.toml');
|
||||
process.exit(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue