u
This commit is contained in:
parent
33f7d7ac8a
commit
bc34ed2e39
8 changed files with 43 additions and 17 deletions
|
@ -8,7 +8,7 @@ let segments = require('./segments');
|
|||
let subscriptions = require('./subscriptions');
|
||||
let shortid = require('shortid');
|
||||
|
||||
let allowedKeys = ['description', 'from', 'address', 'subject', 'template', 'template_url', 'list', 'segment', 'html', 'text'];
|
||||
let allowedKeys = ['description', 'from', 'address', 'subject', 'template', 'source_url', 'list', 'segment', 'html', 'text'];
|
||||
|
||||
module.exports.list = (start, limit, callback) => {
|
||||
db.getConnection((err, connection) => {
|
||||
|
@ -107,7 +107,11 @@ module.exports.filter = (request, callback) => {
|
|||
});
|
||||
};
|
||||
|
||||
processQuery(false);
|
||||
processQuery({
|
||||
// only find normal campaigns at this point
|
||||
where: '`type`=?',
|
||||
values: [1]
|
||||
});
|
||||
};
|
||||
|
||||
module.exports.getByCid = (cid, callback) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue