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
|
@ -77,6 +77,7 @@ async function create(context, campaignId, entity) {
|
|||
|
||||
const filteredEntity = filterObject(entity, allowedKeys);
|
||||
filteredEntity.campaign = campaignId;
|
||||
filteredEntity.last_check = new Date(); // This is to prevent processing subscriptions that predate this trigger.
|
||||
|
||||
const ids = await tx('triggers').insert(filteredEntity);
|
||||
const id = ids[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue