Fixes bug where journey link always takes 24hrs (#608)

This commit is contained in:
Chris Anderson 2025-01-11 11:55:03 -06:00 committed by GitHub
parent e8d2cd97ac
commit 3467d90c17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -400,6 +400,7 @@ export class JourneyLink extends JourneyStep {
parseJson(json: any) {
super.parseJson(json)
this.target_id = json.data?.target_id
this.delay = json.data?.delay ?? '1 day'
}
async process(state: JourneyState, userStep: JourneyUserStep): Promise<void> {