mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-08-28 11:46:02 +08:00
Fixes journeys not scheduling properly (#622)
This commit is contained in:
parent
2a780aab93
commit
be400ec40c
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue