Merge pull request 'Sprint-3/MS-23' (#40) from Sprint-3/MS-23 into master

Reviewed-on: #40
This commit is contained in:
vincent.vo 2024-09-19 10:57:47 +10:00
commit 9f3dfc587d
1 changed files with 2 additions and 3 deletions

View File

@ -29,9 +29,8 @@ class ProfileController extends Controller
public function getProfilesData()
{
$user = auth('admins')->user();
$userEmail = $user->email;
$userEmail = "vincent.vo@apactech.io";
$userEmail = $user->email;
$projects = $this->jiraService->getAllProjects();
$userCriterias = UserCriteria::with([
@ -44,7 +43,7 @@ class ProfileController extends Controller
$result = self::getProjectById($projects, $projectId);
return [
'name' => $result['name'],
'sprints' => $userCriteriasByProject->groupBy('sprint.id')->map(function ($userCriteriasBySprint, $sprintId) {
'sprints' => $userCriteriasByProject->groupBy('sprint.id')->map(function ($userCriteriasBySprint) {
$sprint = $userCriteriasBySprint->first()->sprint;
return [
'name' => $sprint->name,