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:
parent
a0e29467a3
commit
feb2f9ae82
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user