Skip to content

Commit

Permalink
Fixes journeys not scheduling properly (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
pushchris authored Jan 26, 2025
1 parent 2a780aa commit be400ec
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export default class ScheduledEntranceOrchestratorJob extends Job {
.whereJsonPath('journey_steps.data', '$.trigger', '=', 'schedule')
.whereJsonPath('journey_steps.data', '$.multiple', '=', true)
.whereNotNull('journey_steps.next_scheduled_at')
.where('journey_steps.next_scheduled_at', '<=', new Date()),
.where('journey_steps.next_scheduled_at', '<=', new Date())
.select('journey_steps.*', 'journeys.project_id'),
) as Array<JourneyEntrance & { project_id: number }>

if (!entrances.length) return
Expand Down

0 comments on commit be400ec

Please sign in to comment.