Return created workflow with ID when using create-from-template endpoint

[MAILPOET-4533]
This commit is contained in:
David Remer
2022-08-31 11:36:00 +03:00
committed by Jan Jakeš
parent 87ced17813
commit 1591700e71
3 changed files with 9 additions and 4 deletions

View File

@ -156,6 +156,7 @@ class Workflow {
public function toArray(): array {
return [
'id' => $this->id,
'name' => $this->name,
'status' => $this->status,
'author' => $this->author->ID,