From 10ccb5eed2d843acbac247790891b81e99a8c711 Mon Sep 17 00:00:00 2001 From: GloireMutaliko21 Date: Mon, 15 Jul 2024 10:52:01 +0200 Subject: [PATCH] fix: add custome fields on including project repository --- apps/web/app/services/client/api/auth/invite-accept.ts | 2 +- apps/web/app/services/client/api/organization-team.ts | 4 ++-- apps/web/app/services/server/requests/organization-team.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/web/app/services/client/api/auth/invite-accept.ts b/apps/web/app/services/client/api/auth/invite-accept.ts index e97106baa..bee527471 100644 --- a/apps/web/app/services/client/api/auth/invite-accept.ts +++ b/apps/web/app/services/client/api/auth/invite-accept.ts @@ -69,7 +69,7 @@ export function getAllOrganizationTeamAPI(params: ITeamRequestParams, bearer_tok 'members.employee.user', 'createdBy', 'projects', - 'projects.repository' + 'projects.customFields.repository' ]; // Construct search queries diff --git a/apps/web/app/services/client/api/organization-team.ts b/apps/web/app/services/client/api/organization-team.ts index 75e737fd9..733dbc9fa 100644 --- a/apps/web/app/services/client/api/organization-team.ts +++ b/apps/web/app/services/client/api/organization-team.ts @@ -31,7 +31,7 @@ export async function getOrganizationTeamsAPI(organizationId: string, tenantId: 'members.employee.user', 'createdBy', 'projects', - 'projects.repository' + 'projects.customFields.repository' ]; // Construct the query parameters including relations const queryParameters = { @@ -106,7 +106,7 @@ export async function getOrganizationTeamAPI(teamId: string, organizationId: str 'members.employee.user', 'createdBy', 'projects', - 'projects.repository' + 'projects.customFields.repository' ]; // Define base parameters including organization and tenant IDs, and date range diff --git a/apps/web/app/services/server/requests/organization-team.ts b/apps/web/app/services/server/requests/organization-team.ts index a62c2c6d9..8624b9fe2 100644 --- a/apps/web/app/services/server/requests/organization-team.ts +++ b/apps/web/app/services/server/requests/organization-team.ts @@ -92,7 +92,7 @@ export function getOrganizationTeamRequest( 'members.employee.user', 'createdBy', 'projects', - 'projects.repository' + 'projects.customFields.repository' ] }: ITeamRequestParams & { teamId: string }, bearer_token: string @@ -139,7 +139,7 @@ export function getAllOrganizationTeamRequest( 'members.employee.user', 'createdBy', 'projects', - 'projects.repository' + 'projects.customFields.repository' ] }: ITeamRequestParams, bearer_token: string