Skip to content

Commit 194628d

Browse files
committed
correct references to Username instead of Name
1 parent ef9d63b commit 194628d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

coderd/workspacebuilds.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ func (api *API) convertWorkspaceBuild(
909909
scripts := scriptsByAgentID[agent.ID]
910910
logSources := logSourcesByAgentID[agent.ID]
911911
apiAgent, err := db2sdk.WorkspaceAgent(
912-
api.DERPMap(), *api.TailnetCoordinator.Load(), agent, db2sdk.Apps(apps, agent, owner.Name, workspace), convertScripts(scripts), convertLogSources(logSources), api.AgentInactiveDisconnectTimeout,
912+
api.DERPMap(), *api.TailnetCoordinator.Load(), agent, db2sdk.Apps(apps, agent, owner.Username, workspace), convertScripts(scripts), convertLogSources(logSources), api.AgentInactiveDisconnectTimeout,
913913
api.DeploymentValues.AgentFallbackTroubleshootingURL.String(),
914914
)
915915
if err != nil {
@@ -927,7 +927,7 @@ func (api *API) convertWorkspaceBuild(
927927
CreatedAt: build.CreatedAt,
928928
UpdatedAt: build.UpdatedAt,
929929
WorkspaceOwnerID: workspace.OwnerID,
930-
WorkspaceOwnerName: owner.Name,
930+
WorkspaceOwnerName: owner.Username,
931931
WorkspaceOwnerAvatarURL: owner.AvatarURL,
932932
WorkspaceID: build.WorkspaceID,
933933
WorkspaceName: workspace.Name,

coderd/workspaces.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1621,7 +1621,7 @@ func convertWorkspace(
16211621
CreatedAt: workspace.CreatedAt,
16221622
UpdatedAt: workspace.UpdatedAt,
16231623
OwnerID: workspace.OwnerID,
1624-
OwnerName: owner.Name,
1624+
OwnerName: owner.Username,
16251625
OwnerAvatarURL: owner.AvatarURL,
16261626
OrganizationID: workspace.OrganizationID,
16271627
TemplateID: workspace.TemplateID,

0 commit comments

Comments
 (0)