Finished support for triggered campaigns. So far only smoke-tested for subscription trigger.

This commit is contained in:
Tomas Bures 2018-11-21 01:41:10 +03:00
parent 4f5b2d10e4
commit b37ad9863c
56 changed files with 416 additions and 213 deletions

View file

@ -1,14 +1,26 @@
'use strict';
const config = require('config');
const moment = require('moment');
const knex = require('knex')({
client: 'mysql2',
connection: config.mysql,
connection: {
...config.mysql,
// DATE and DATETIME types contain no timezone info. The MySQL driver tries to interpret them w.r.t. to local time, which
// does not work well with assigning these values in UTC and handling them as if in UTC
dateStrings: [
'DATE',
'DATETIME'
]
},
migrations: {
directory: __dirname + '/../setup/knex/migrations'
}
//, debug: true
//, debug: true
});
module.exports = knex;