mirror of
https://github.com/coder/coder.git
synced 2025-07-01 16:07:26 +00:00
chore: rename template restart requirement to autostop requirement (#9295)
This commit is contained in:
@ -384,8 +384,8 @@ func (api *API) postWorkspacesByOrganization(rw http.ResponseWriter, r *http.Req
|
||||
}
|
||||
|
||||
maxTTL := templateSchedule.MaxTTL
|
||||
if templateSchedule.UseRestartRequirement {
|
||||
// If we're using restart requirements, there isn't a max TTL.
|
||||
if templateSchedule.UseAutostopRequirement {
|
||||
// If we're using autostop requirements, there isn't a max TTL.
|
||||
maxTTL = 0
|
||||
}
|
||||
|
||||
@ -721,8 +721,8 @@ func (api *API) putWorkspaceTTL(rw http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
maxTTL := templateSchedule.MaxTTL
|
||||
if templateSchedule.UseRestartRequirement {
|
||||
// If we're using restart requirements, there isn't a max TTL.
|
||||
if templateSchedule.UseAutostopRequirement {
|
||||
// If we're using autostop requirements, there isn't a max TTL.
|
||||
maxTTL = 0
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user