Add version_id to WorkflowRun

[MAILPOET-4430]
This commit is contained in:
David Remer
2022-08-03 09:02:33 +03:00
committed by Veljko V
parent 456417a467
commit 02489a61a6
4 changed files with 19 additions and 8 deletions

View File

@ -59,7 +59,7 @@ class TriggerHandler {
$loadedSubjects[] = $this->subjectLoader->loadSubject($subject['key'], $subject['args']);
}
$workflowRun = new WorkflowRun($workflow->getId(), $trigger->getKey(), $loadedSubjects);
$workflowRun = new WorkflowRun($workflow->getId(), $workflow->getVersionId(), $trigger->getKey(), $loadedSubjects);
$workflowRunId = $this->workflowRunStorage->createWorkflowRun($workflowRun);
$this->actionScheduler->enqueue(Hooks::WORKFLOW_STEP, [