Skip to content

Commit

Permalink
fix(api): also make creation opts have optional rootId
Browse files Browse the repository at this point in the history
  • Loading branch information
dsonck92 committed Jul 27, 2024
1 parent 09d6576 commit 127345f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/repo/workspace_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ type WorkspaceInsertOptions struct {
StorageCapacity int64
Image *string
OrganizationID string
RootID string
RootID *string
Bucket string
}

Expand All @@ -160,7 +160,7 @@ func (repo *workspaceRepo) Insert(opts WorkspaceInsertOptions) (model.Workspace,
ID: id,
Name: opts.Name,
StorageCapacity: opts.StorageCapacity,
RootID: &opts.RootID,
RootID: opts.RootID,
OrganizationID: opts.OrganizationID,
Bucket: opts.Bucket,
}
Expand Down

0 comments on commit 127345f

Please sign in to comment.