added campaignId to query for campaign_messages
This commit is contained in:
parent
3a2d1512ab
commit
b2bb0b642f
1 changed files with 1 additions and 1 deletions
|
@ -361,7 +361,7 @@ async function processCampaign(campaignId) {
|
|||
}
|
||||
|
||||
const subs = await knex('campaign_messages')
|
||||
.where({status: CampaignMessageStatus.SCHEDULED})
|
||||
.where({status: CampaignMessageStatus.SCHEDULED, campaign: campaignId})
|
||||
.whereNotIn('hash_email', messagesInProcessing.map(x => x.hash_email))
|
||||
.limit(retrieveBatchSize);
|
||||
|
||||
|
|
Loading…
Reference in a new issue