Create templated workflows in draft status

MAILPOET-4264
This commit is contained in:
John Oleksowicz
2022-06-02 15:35:02 -05:00
committed by Veljko V
parent 25b9f3a876
commit 2bf59eab9a
4 changed files with 21 additions and 1 deletions

View File

@ -34,6 +34,7 @@ class CreateWorkflowFromTemplateController {
throw UnexpectedValueException::create()->withMessage('Template not found.');
}
$workflow->setDraft();
$this->storage->createWorkflow($workflow);
return $workflow;
}