mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 08:26:10 +00:00
Merge pull request #1357 from Infisical/danie/fix-list-workspaces
(Fix): List workspaces organization ID
This commit is contained in:
@@ -41,7 +41,7 @@ export const projectDALFactory = (db: TDbClient) => {
|
|||||||
|
|
||||||
return nestedWorkspaces.map((workspace) => ({
|
return nestedWorkspaces.map((workspace) => ({
|
||||||
...workspace,
|
...workspace,
|
||||||
organization: workspace.id
|
organization: workspace.orgId
|
||||||
}));
|
}));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new DatabaseError({ error, name: "Find all projects" });
|
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.
|
// We need to add the organization field, as it's required for one of our API endpoint responses.
|
||||||
return nestedWorkspaces.map((workspace) => ({
|
return nestedWorkspaces.map((workspace) => ({
|
||||||
...workspace,
|
...workspace,
|
||||||
organization: workspace.id
|
organization: workspace.orgId
|
||||||
}));
|
}));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new DatabaseError({ error, name: "Find all projects by identity" });
|
throw new DatabaseError({ error, name: "Find all projects by identity" });
|
||||||
|
|||||||
Reference in New Issue
Block a user