Skip to content

Commit

Permalink
task viewer metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaukutsu committed Dec 14, 2023
1 parent d1d2710 commit 65017cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dto/TaskView.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public function toArray(): array
$attributes = get_object_vars($this);
$attributes['metrics'] = $this->metrics->toArray();

if ($this->relation !== null) {
$attributes['relation'] = $this->relation->toArray();
}

return $attributes;
}
}

0 comments on commit 65017cd

Please sign in to comment.