Finished support for triggered campaigns. So far only smoke-tested for subscription trigger.
This commit is contained in:
parent
4f5b2d10e4
commit
b37ad9863c
56 changed files with 416 additions and 213 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue