From feb2f9ae82e43fe9e427dd0c4121d71a24935a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20B=C3=B6hler?= Date: Thu, 21 Mar 2019 13:51:02 +0100 Subject: [PATCH] Add user id and displayname in task status (API) --- app/Ninja/Transformers/TaskTransformer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Ninja/Transformers/TaskTransformer.php b/app/Ninja/Transformers/TaskTransformer.php index 98b09fbbbf..20989b816c 100644 --- a/app/Ninja/Transformers/TaskTransformer.php +++ b/app/Ninja/Transformers/TaskTransformer.php @@ -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),