Skip to content

Commit 58d4114

Browse files
committed
fixup! make gen
1 parent e46a9a0 commit 58d4114

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cli/ttl_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func TestTTL(t *testing.T) {
7272
err := cmd.Execute()
7373
require.NoError(t, err, "unexpected error")
7474

75-
// Ensure autostop schedule updated
75+
// Ensure ttl updated
7676
updated, err := client.Workspace(ctx, workspace.ID)
7777
require.NoError(t, err, "fetch updated workspace")
7878
require.Equal(t, ttl.Truncate(time.Minute), *updated.TTL)
@@ -86,7 +86,7 @@ func TestTTL(t *testing.T) {
8686
err = cmd.Execute()
8787
require.NoError(t, err, "unexpected error")
8888

89-
// Ensure autostop schedule updated
89+
// Ensure ttl updated
9090
updated, err = client.Workspace(ctx, workspace.ID)
9191
require.NoError(t, err, "fetch updated workspace")
9292
require.Nil(t, updated.TTL, "expected ttl to not be set")

codersdk/workspaces.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func (c *Client) UpdateWorkspaceAutostart(ctx context.Context, id uuid.UUID, req
150150
return nil
151151
}
152152

153-
// UpdateWorkspaceAutostopRequest is a request to update a workspace's autostop schedule.
153+
// UpdateWorkspaceTTLRequest is a request to update a workspace's TTL.
154154
type UpdateWorkspaceTTLRequest struct {
155155
TTL *time.Duration `json:"ttl"`
156156
}

site/src/api/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export const putWorkspaceAutostart = async (
182182

183183
export const putWorkspaceAutostop = async (
184184
workspaceID: string,
185-
autostop: TypesGen.UpdateWorkspaceAutostopRequest,
185+
autostop: TypesGen.UpdateWorkspaceTTLRequest,
186186
): Promise<void> => {
187187
const payload = JSON.stringify(autostop)
188188
await axios.put(`/api/v2/workspaces/${workspaceID}/autostop`, payload, {

0 commit comments

Comments
 (0)