Skip to content
This repository was archived by the owner on Feb 18, 2026. It is now read-only.

Commit be400ec

Browse files
authored
Fixes journeys not scheduling properly (#622)
1 parent 2a780aa commit be400ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/platform/src/journey/ScheduledEntranceOrchestratorJob.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ export default class ScheduledEntranceOrchestratorJob extends Job {
1919
.whereJsonPath('journey_steps.data', '$.trigger', '=', 'schedule')
2020
.whereJsonPath('journey_steps.data', '$.multiple', '=', true)
2121
.whereNotNull('journey_steps.next_scheduled_at')
22-
.where('journey_steps.next_scheduled_at', '<=', new Date()),
22+
.where('journey_steps.next_scheduled_at', '<=', new Date())
23+
.select('journey_steps.*', 'journeys.project_id'),
2324
) as Array<JourneyEntrance & { project_id: number }>
2425

2526
if (!entrances.length) return

0 commit comments

Comments
 (0)