Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update project-dal.ts

Daniel Hougaarde9fa631c8f4f
diff --git a/backend/src/services/project/project-dal.ts b/backend/src/services/project/project-dal.ts
index b57fdffe1c..e937a8e0f0 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" });