From e9fa631c8f4f55f6e2f5a61e70673f9e6c7e1122 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard <62331820+DanielHougaard@users.noreply.github.com> Date: Thu, 1 Feb 2024 10:14:17 +0400 Subject: [PATCH] Update project-dal.ts --- backend/src/services/project/project-dal.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/services/project/project-dal.ts b/backend/src/services/project/project-dal.ts index b57fdffe1..e937a8e0f 100644 --- a/backend/src/services/project/project-dal.ts +++ b/backend/src/services/project/project-dal.ts @@ -41,7 +41,7 @@ export const projectDALFactory = (db: TDbClient) => { return nestedWorkspaces.map((workspace) => ({ ...workspace, - organization: workspace.id + organization: workspace.orgId })); } catch (error) { throw new DatabaseError({ error, name: "Find all projects" }); @@ -83,7 +83,7 @@ export const projectDALFactory = (db: TDbClient) => { // We need to add the organization field, as it's required for one of our API endpoint responses. return nestedWorkspaces.map((workspace) => ({ ...workspace, - organization: workspace.id + organization: workspace.orgId })); } catch (error) { throw new DatabaseError({ error, name: "Find all projects by identity" });