mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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), [
|
return array_merge($this->getDefaults($task), [
|
||||||
'id' => (int) $task->public_id,
|
'id' => (int) $task->public_id,
|
||||||
|
'user_id' => (int) $task->user_id,
|
||||||
|
'username' => $task->user->getDisplayName(),
|
||||||
'description' => $task->description ?: '',
|
'description' => $task->description ?: '',
|
||||||
'duration' => $task->getDuration() ?: 0,
|
'duration' => $task->getDuration() ?: 0,
|
||||||
'updated_at' => (int) $this->getTimestamp($task->updated_at),
|
'updated_at' => (int) $this->getTimestamp($task->updated_at),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user