This commit is contained in:
Tomas Bures 2019-12-07 11:53:18 +01:00
parent 52c638b0b3
commit 6d00ea1e69

View file

@ -52,8 +52,8 @@ async function run() {
.where(function () {
addSegmentQuery(this);
})
.whereNull('related_trigger_messages.id') // This means only those campaigns where one of their triggers has not fired yet somewhen in the past
.where(subsTable + '.status', SubscriptionStatus.SUBSCRIBED)
.whereNull('related_trigger_messages.id') // This means only those where the trigger has not fired yet somewhen in the past
.select(subsTable + '.id');
let column;