Skip to content

Commit

Permalink
fix: Add workspace gid to create requests (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
santese committed Nov 3, 2021
1 parent e110fcd commit f966890
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/portfolios/portfolios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export class Portfolios {
optFields?: Array<string>,
options?: any,
) {
if (!data.workspace) data.workspace = this.workspaceGid
const res = await this.portfoliosApi.createPortfolio(
{ data },
optPretty,
Expand Down Expand Up @@ -230,6 +231,7 @@ export class Portfolios {
optFields?: Array<string>,
options?: any,
) {
if (!data.workspace) data.workspace = this.workspaceGid
const res = await this.portfoliosApi.updatePortfolio(
portfolioGid,
{ data },
Expand Down
1 change: 1 addition & 0 deletions src/lib/teams/teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export class Teams {
offset?: string,
options?: any,
) {
if (!data.organization) data.organization = this.workspaceGid
const res = await this.teamsApi.createTeam(
{ data },
optPretty,
Expand Down

0 comments on commit f966890

Please sign in to comment.