Change username -> user
This commit is contained in:
parent
afbd8df072
commit
fde4e553df
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ 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->public_id,
|
'user_id' => (int) $task->user->public_id,
|
||||||
'username' => $task->user->getDisplayName(),
|
'user' => $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…
Add table
Reference in a new issue