Skip to content

Commit 4fb280c

Browse files
committed
fix activity bump sql
1 parent f28d474 commit 4fb280c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

coderd/database/queries.sql.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/activitybump.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ WITH latest AS (
2222
END
2323
ELSE
2424
CASE
25-
WHEN templates.ttl_bump > 0 THEN (templates.ttl_bump / 1000 / 1000 / 1000 || ' seconds')::interval
25+
WHEN templates.default_ttl_bump > 0 THEN (templates.default_ttl_bump / 1000 / 1000 / 1000 || ' seconds')::interval
2626
ELSE (templates.default_ttl / 1000 / 1000 / 1000 || ' seconds')::interval
2727
END
2828
END

site/src/pages/WorkspaceSettingsPage/WorkspaceSchedulePage/WorkspaceSchedulePage.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ describe("WorkspaceSchedulePage", () => {
249249
// zero
250250
[0, 0, { autostopEnabled: false, ttl: 0, ttl_bump: 0 }],
251251
// basic case
252-
[28_800_000, 3600, { autostopEnabled: true, ttl: 8, ttl_bump: 1 }],
252+
[28_800_000, 3600, { autostopEnabled: true, ttl: 8, ttl_bump: 0 }],
253253
] as const)(
254254
`ttlMsToAutostop(%p) returns %p`,
255255
(ttlMs, ttlBumpMs, autostop) => {

0 commit comments

Comments
 (0)