10000 fix: create and read workspace page by presleyp · Pull Request #1294 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

fix: create and read workspace page #1294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
May 6, 2022
Merged
Next Next commit
Change name of existing workspace call
  • Loading branch information
presleyp committed May 4, 2022
commit 386a2d700a0092f903d4a167cfe4fa0514956e33
2 changes: 1 addition & 1 deletion site/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const getOrganizations = async (): Promise<Types.Organization[]> => {
return response.data
}

export const getWorkspace = async (
export const getWorkspaceByOwnerAndName = async (
organizationID: string,
username = "me",
workspaceName: string,
Expand Down
2 changes: 1 addition & 1 deletion site/src/xServices/terminal/terminalXService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const terminalMachine =
if (!context.organizations || !context.workspaceName) {
throw new Error("organizations or workspace not set")
}
return API.getWorkspace(context.organizations[0].id, context.username, context.workspaceName)
return API.getWorkspaceByOwnerAndName(context.organizations[0].id, context.username, context.workspaceName)
},
getWorkspaceAgent: async (context) => {
if (!context.workspace || !context.workspaceName) {
Expand Down
0