diff options
Diffstat (limited to 'app/Api/Me.php')
-rw-r--r-- | app/Api/Me.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/app/Api/Me.php b/app/Api/Me.php index ff317557..e7611554 100644 --- a/app/Api/Me.php +++ b/app/Api/Me.php @@ -33,7 +33,8 @@ class Me extends Base public function getMyActivityStream() { - return $this->projectActivity->getProjects($this->projectPermission->getActiveMemberProjectIds($this->userSession->getId()), 100); + $project_ids = $this->projectPermission->getActiveMemberProjectIds($this->userSession->getId()); + return $this->projectActivity->getProjects($project_ids, 100); } public function createMyPrivateProject($name, $description = null) @@ -52,14 +53,17 @@ class Me extends Base { return $this->projectPermission->getMemberProjects($this->userSession->getId()); } - + public function getMyOverdueTasks() { return $this->taskFinder->getOverdueTasksByUser($this->userSession->getId()); } - + public function getMyProjects() { - return $this->formatProjects($this->project->getAllByIds($this->projectPermission->getActiveMemberProjectIds($this->userSession->getId()))); + $project_ids = $this->projectPermission->getActiveMemberProjectIds($this->userSession->getId()); + $projects = $this->project->getAllByIds($project_ids); + + return $this->formatProjects($projects); } } |