Skip to content

Commit 85880ac

Browse files
committed
PR comments
1 parent 74d2789 commit 85880ac

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

coderd/database/queries/activitybump.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ FROM latest l
6969
WHERE wb.id = l.build_id
7070
AND l.job_completed_at IS NOT NULL
7171
-- We only bump if the template has an activity bump duration set.
72-
AND l.activity_bump IS NOT NULL
72+
AND l.activity_bump != 0
7373
AND l.build_transition = 'start'
7474
-- We only bump if the raw interval is positive and non-zero.
7575
AND l.ttl_interval > '0 seconds'::interval

coderd/templates.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ func (api *API) convertTemplate(
874874
autostopRequirementWeeks = 1
875875
}
876876

877-
x := codersdk.Template{
877+
return codersdk.Template{
878878
ID: template.ID,
879879
CreatedAt: template.CreatedAt,
880880
UpdatedAt: template.UpdatedAt,
@@ -911,5 +911,4 @@ func (api *API) convertTemplate(
911911
Deprecated: templateAccessControl.IsDeprecated(),
912912
DeprecationMessage: templateAccessControl.Deprecated,
913913
}
914-
return x
915914
}

0 commit comments

Comments
 (0)