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" });