Skip to content

Commit

Permalink
Regression fix for including throttle messages (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
pushchris authored Nov 11, 2024
1 parent f6868a4 commit 1391d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/platform/src/campaigns/CampaignService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export const campaignSendReadyQuery = (
) => {
const query = CampaignSend.query()
.where('campaign_sends.send_at', '<=', CampaignSend.raw('NOW()'))
.where('campaign_sends.state', includeThrottled ? ['pending', 'throttled'] : ['pending'])
.whereIn('campaign_sends.state', includeThrottled ? ['pending', 'throttled'] : ['pending'])
.where('campaign_id', campaignId)
.select('user_id', 'campaign_sends.id AS send_id')
if (limit) query.limit(limit)
Expand Down

0 comments on commit 1391d37

Please sign in to comment.