Save and load workflows in the new format, update API

[MAILPOET-4523]
This commit is contained in:
Jan Jakes
2022-09-08 15:50:25 +02:00
committed by John Oleksowicz
parent 9028ea96ec
commit 1677cc2842
11 changed files with 126 additions and 82 deletions

View File

@ -33,13 +33,6 @@ class UpdateStepsController {
if (!$step) {
throw Exceptions::workflowStepNotFound($key);
}
return new Step(
$data['id'],
$data['type'],
$data['key'],
$data['next_step_id'] ?? null,
$data['args'] ?? null
);
return Step::fromArray($data);
}
}