File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ FROM latest l
69
69
WHERE wb .id = l .build_id
70
70
AND l .job_completed_at IS NOT NULL
71
71
-- 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
73
73
AND l .build_transition = ' start'
74
74
-- We only bump if the raw interval is positive and non-zero.
75
75
AND l .ttl_interval > ' 0 seconds' ::interval
Original file line number Diff line number Diff line change @@ -874,7 +874,7 @@ func (api *API) convertTemplate(
874
874
autostopRequirementWeeks = 1
875
875
}
876
876
877
- x := codersdk.Template {
877
+ return codersdk.Template {
878
878
ID : template .ID ,
879
879
CreatedAt : template .CreatedAt ,
880
880
UpdatedAt : template .UpdatedAt ,
@@ -911,5 +911,4 @@ func (api *API) convertTemplate(
911
911
Deprecated : templateAccessControl .IsDeprecated (),
912
912
DeprecationMessage : templateAccessControl .Deprecated ,
913
913
}
914
- return x
915
914
}
You can’t perform that action at this time.
0 commit comments