1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Add user id and displayname in task status (API)

This commit is contained in:
Andreas Böhler 2019-03-21 13:51:02 +01:00
parent a0e29467a3
commit feb2f9ae82

View File

@ -63,6 +63,8 @@ class TaskTransformer extends EntityTransformer
{
return array_merge($this->getDefaults($task), [
'id' => (int) $task->public_id,
'user_id' => (int) $task->user_id,
'username' => $task->user->getDisplayName(),
'description' => $task->description ?: '',
'duration' => $task->getDuration() ?: 0,
'updated_at' => (int) $this->getTimestamp($task->updated_at),